forked from GNUsocial/gnu-social
no extra nulls on home page
This commit is contained in:
parent
aa7b6447a1
commit
98b3f5ea91
@ -59,9 +59,7 @@ class AllAction extends ProfileAction
|
|||||||
$stream = new ThreadingInboxNoticeStream($this->user, Profile::current());
|
$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);
|
||||||
null,
|
|
||||||
null);
|
|
||||||
|
|
||||||
if ($this->page > 1 && $this->notice->N == 0) {
|
if ($this->page > 1 && $this->notice->N == 0) {
|
||||||
// TRANS: Server error when page not found (404).
|
// TRANS: Server error when page not found (404).
|
||||||
|
Loading…
Reference in New Issue
Block a user