]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelinegroup.php
show forwards in the inbox
[quix0rs-gnu-social.git] / actions / apitimelinegroup.php
index f25f6ba513d76b6ad85aa129be18dc3f4ffaabfb..de13e7eb9871b95c3ed5d90b869aa236db08e200 100644 (file)
@@ -69,7 +69,6 @@ class ApiTimelineGroupAction extends ApiPrivateAuthAction
         parent::prepare($args);
 
         $this->group   = $this->getTargetGroup($this->arg('id'));
-        $this->notices = $this->getNotices();
 
         return true;
     }
@@ -87,6 +86,13 @@ class ApiTimelineGroupAction extends ApiPrivateAuthAction
     function handle($args)
     {
         parent::handle($args);
+
+        if (empty($this->group)) {
+            $this->clientError(_('Group not found!'), 404, $this->format);
+            return false;
+        }
+
+        $this->notices = $this->getNotices();
         $this->showTimeline();
     }