forked from GNUsocial/gnu-social
use threading notice stream wrapper for public
This commit is contained in:
parent
ff782f1d97
commit
52fce18e0a
|
@ -88,7 +88,7 @@ class PublicAction extends Action
|
||||||
|
|
||||||
$this->userProfile = Profile::current();
|
$this->userProfile = Profile::current();
|
||||||
|
|
||||||
$stream = new PublicNoticeStream($this->userProfile);
|
$stream = new ThreadingPublicNoticeStream($this->userProfile);
|
||||||
|
|
||||||
$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);
|
||||||
|
@ -252,3 +252,11 @@ class PublicAction extends Action
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ThreadingPublicNoticeStream extends ThreadingNoticeStream
|
||||||
|
{
|
||||||
|
function __construct($profile)
|
||||||
|
{
|
||||||
|
parent::__construct(new PublicNoticeStream($profile));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue