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()
|
function showPageNotice()
|
||||||
{
|
{
|
||||||
$notice = Notice::publicStream(0, 1);
|
$notice = new Notice;
|
||||||
|
|
||||||
if (!$notice) {
|
if (!$notice) {
|
||||||
$this->serverError(_('Could not retrieve public stream.'));
|
$this->serverError(_('Could not retrieve public stream.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// no notices in the public stream, let's get out of here
|
|
||||||
if ($notice->count()) {
|
if ($notice->count()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user