From: Robin Millette Date: Fri, 3 Apr 2009 20:34:27 +0000 (+0000) Subject: Simplified code for empty public timeline. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1fec6db2fdc9c28878c8f87bd5b55d1b1e5e1fa;p=quix0rs-gnu-social.git Simplified code for empty public timeline. --- diff --git a/actions/public.php b/actions/public.php index fca90488fe..5a2720a9ad 100644 --- a/actions/public.php +++ b/actions/public.php @@ -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; }