X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapiusershow.php;h=0ea0b2e72fd93643eea57eacaadcfb1417ae30d8;hb=49b755912f56ed6b626d68e04ae634f6264ef58d;hp=ab1bfb9c9c7b7e7fa9d95f4242acd865f820ca07;hpb=c4b9dc7a0ff2e41712715ac21bace067e8c02715;p=quix0rs-gnu-social.git diff --git a/actions/apiusershow.php b/actions/apiusershow.php index ab1bfb9c9c..0ea0b2e72f 100644 --- a/actions/apiusershow.php +++ b/actions/apiusershow.php @@ -68,7 +68,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction // XXX: email field deprecated in Twitter's API if (!empty($email)) { - $this->user = User::staticGet('email', $email); + $this->user = User::getKV('email', $email); } else { $this->user = $this->getTargetUser($this->arg('id')); } @@ -104,7 +104,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction $profile = $this->user->getProfile(); if (empty($profile)) { - // TRANS: Client error displayed when requesting user information for a user without a profile. + // TRANS: Error message displayed when referring to a user without a profile. $this->clientError(_('User has no profile.')); return; }