forked from GNUsocial/gnu-social
use threadingnoticestream for inbox
This commit is contained in:
parent
52fce18e0a
commit
ee81f98828
@ -56,7 +56,7 @@ class AllAction extends ProfileAction
|
|||||||
{
|
{
|
||||||
parent::prepare($args);
|
parent::prepare($args);
|
||||||
|
|
||||||
$stream = new InboxNoticeStream($this->user);
|
$stream = new ThreadingInboxNoticeStream($this->user, Profile::current());
|
||||||
|
|
||||||
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
|
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
|
||||||
NOTICES_PER_PAGE + 1,
|
NOTICES_PER_PAGE + 1,
|
||||||
@ -205,3 +205,11 @@ class AllAction extends ProfileAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ThreadingInboxNoticeStream extends ThreadingNoticeStream
|
||||||
|
{
|
||||||
|
function __construct($user, $profile)
|
||||||
|
{
|
||||||
|
parent::__construct(new InboxNoticeStream($user, $profile));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user