exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Show a stream of notices in a particular conversation
*
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).
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,
*
* @return boolean is read only action?
*/
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
if ($_SERVER['REQUEST_METHOD'] == 'GET' ||
$_SERVER['REQUEST_METHOD'] == 'HEAD') {