]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Simplified code for empty public timeline.
authorRobin Millette <millette@controlyourself.ca>
Fri, 3 Apr 2009 20:34:27 +0000 (20:34 +0000)
committerRobin Millette <millette@controlyourself.ca>
Fri, 3 Apr 2009 20:34:27 +0000 (20:34 +0000)
actions/public.php

index fca90488fee4223f1ec04beaee7488eeb8130fb4..5a2720a9ad919cdbb8442e3832c1c470908d5be2 100644 (file)
@@ -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;
         }