]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/grouprss.php
Enhanced upload file type detection. If given an original filename, we'll attempt...
[quix0rs-gnu-social.git] / actions / grouprss.php
index 50e48a67e9ea7121e462fdbcc5b2ef0a2063f9fe..490f6f945cac57b509f968b3f771aea5b3f3c5c5 100644 (file)
@@ -88,14 +88,21 @@ class groupRssAction extends Rss10Action
         }
 
         if (!$nickname) {
-            $this->clientError(_('No nickname'), 404);
+            $this->clientError(_('No nickname.'), 404);
             return false;
         }
 
-        $this->group = User_group::staticGet('nickname', $nickname);
+        $local = Local_group::staticGet('nickname', $nickname);
+
+        if (!$local) {
+            $this->clientError(_('No such group.'), 404);
+            return false;
+        }
+
+        $this->group = User_group::staticGet('id', $local->group_id);
 
         if (!$this->group) {
-            $this->clientError(_('No such group'), 404);
+            $this->clientError(_('No such group.'), 404);
             return false;
         }