forked from GNUsocial/gnu-social
Simplified code for empty public timeline.
This commit is contained in:
parent
4d4e6ead9c
commit
e1fec6db2f
@ -168,14 +168,13 @@ class PublicAction extends Action
|
||||
|
||||
function showPageNotice()
|
||||
{
|
||||
$notice = Notice::publicStream(0, 1);
|
||||
$notice = new Notice;
|
||||
|
||||
if (!$notice) {
|
||||
$this->serverError(_('Could not retrieve public stream.'));
|
||||
return;
|
||||
}
|
||||
|
||||
// no notices in the public stream, let's get out of here
|
||||
if ($notice->count()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user