]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/profiletagbyid.php
make it possible to erase fields in the profile via the api
[quix0rs-gnu-social.git] / actions / profiletagbyid.php
index 396e634abae6fa49d8c7e093c76fd1ac4b270439..ce7298a2f6b7038829c872533aff2026d2d700dd 100644 (file)
@@ -55,20 +55,18 @@ class ProfiletagbyidAction extends Action
         if (!$id) {
             // TRANS: Client error displayed trying to perform an action without providing an ID.
             $this->clientError(_('No ID.'));
-            return false;
         }
 
         common_debug("Peopletag id $id by user id $tagger_id");
 
-        $this->peopletag = Profile_list::staticGet('id', $id);
+        $this->peopletag = Profile_list::getKV('id', $id);
 
         if (!$this->peopletag) {
             // TRANS: Client error displayed trying to reference a non-existing list.
             $this->clientError(_('No such list.'), 404);
-            return false;
         }
 
-        $user = User::staticGet('id', $tagger_id);
+        $user = User::getKV('id', $tagger_id);
         if (!$user) {
             // remote peopletag, permanently redirect
             common_redirect($this->peopletag->permalink(), 301);