]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/userrss.php
make it possible to erase fields in the profile via the api
[quix0rs-gnu-social.git] / actions / userrss.php
index 3a7332088dd93a2688adb15eaf8dbb23c2dac80d..308db948918c079a9d4a1ce63463840c3b564a82 100644 (file)
@@ -37,15 +37,15 @@ class UserrssAction extends Rss10Action
         if (!$this->user) {
             // TRANS: Client error displayed when user not found for an action.
             $this->clientError(_('No such user.'));
-            return false;
+        }
+
+        if (!empty($this->tag)) {
+            $this->notices = $this->getTaggedNotices();
         } else {
-            if (!empty($this->tag)) {
-                $this->notices = $this->getTaggedNotices();
-            } else {
-                $this->notices = $this->getNotices();
-            }
-            return true;
+            $this->notices = $this->getNotices();
         }
+
+        return true;
     }
 
     function getTaggedNotices()