X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fprofiletagbyid.php;h=ce7298a2f6b7038829c872533aff2026d2d700dd;hb=c93b21d9f68f0a0edc11ab55062b2d655927fe39;hp=396e634abae6fa49d8c7e093c76fd1ac4b270439;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/actions/profiletagbyid.php b/actions/profiletagbyid.php index 396e634aba..ce7298a2f6 100644 --- a/actions/profiletagbyid.php +++ b/actions/profiletagbyid.php @@ -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);