use ReplyNoticeStream for mentions API
This commit is contained in:
parent
5a9d969f22
commit
d44000077d
|
@ -193,10 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
|
||||||
{
|
{
|
||||||
$notices = array();
|
$notices = array();
|
||||||
|
|
||||||
$notice = $this->user->getReplies(
|
$stream = new ReplyNoticeStream($this->user->id,
|
||||||
($this->page - 1) * $this->count, $this->count,
|
Profile::current());
|
||||||
$this->since_id, $this->max_id
|
|
||||||
);
|
$notice = $stream->getNotices(($this->page - 1) * $this->count,
|
||||||
|
$this->count,
|
||||||
|
$this->since_id,
|
||||||
|
$this->max_id);
|
||||||
|
|
||||||
while ($notice->fetch()) {
|
while ($notice->fetch()) {
|
||||||
$notices[] = clone($notice);
|
$notices[] = clone($notice);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user