]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiconversation.php
Email notify-on-fave moved to Profile_prefs (run upgrade.php)
[quix0rs-gnu-social.git] / actions / apiconversation.php
index 504787b9a2da979a07e2e5d9aba3b2cc1ae5223b..0e292303d58b2791e052f4da9d8c50eb63e096d2 100644 (file)
@@ -34,8 +34,6 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/apiauth.php';
-
 /**
  * Show a stream of notices in a particular conversation
  *
@@ -69,7 +67,7 @@ class ApiconversationAction extends ApiAuthAction
             throw new ClientException(_('No conversation ID.'));
         }
 
-        $this->conversation = Conversation::staticGet('id', $convId);
+        $this->conversation = Conversation::getKV('id', $convId);
 
         if (empty($this->conversation)) {
             // TRANS: Client exception thrown when referring to a non-existing conversation ID (%d).
@@ -77,9 +75,7 @@ class ApiconversationAction extends ApiAuthAction
                                       404);
         }
 
-        $profile = Profile::current();
-
-        $stream = new ConversationNoticeStream($convId, $profile);
+        $stream = new ConversationNoticeStream($convId, $this->scoped);
 
         $notice = $stream->getNotices(($this->page-1) * $this->count,
                                       $this->count,