X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fuserrss.php;h=99330af57f7edf9e3b260f58ba23b8b3f6e640b8;hb=f79aec36feaa4760201a7e88d5b31513a3c458ba;hp=b7078fcaf886a2967a11cc3d2b058b89cf6f37c2;hpb=f8883367184e4fd31dc819d5e1257d0eee11eb10;p=quix0rs-gnu-social.git diff --git a/actions/userrss.php b/actions/userrss.php index b7078fcaf8..99330af57f 100644 --- a/actions/userrss.php +++ b/actions/userrss.php @@ -29,14 +29,13 @@ class UserrssAction extends Rss10Action function prepare($args) { - common_debug("UserrssAction"); - parent::prepare($args); $nickname = $this->trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); $this->tag = $this->trimmed('tag'); if (!$this->user) { + // TRANS: Client error displayed when user not found for an action. $this->clientError(_('No such user.')); return false; } else { @@ -105,14 +104,15 @@ class UserrssAction extends Rss10Action $profile = $user->getProfile(); if (!$profile) { common_log_db_error($user, 'SELECT', __FILE__); - $this->serverError(_('User without matching profile.')); + // TRANS: Error message displayed when referring to a user without a profile. + $this->serverError(_('User has no profile.')); return null; } $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return ($avatar) ? $avatar->url : null; } - # override parent to add X-SUP-ID URL + // override parent to add X-SUP-ID URL function initRss($limit=0) {