]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/avatarbynickname.php
generate an etag for shownotice
[quix0rs-gnu-social.git] / actions / avatarbynickname.php
index 98e82814b1703076b37179bc6018b28358acbdef..b33cababf72072aa0ced1dd4cda4a8c703877636 100644 (file)
@@ -37,7 +37,7 @@ class AvatarbynicknameAction extends Action {
                $this->client_error(_('Invalid size.'));
                        return;
                }
-                       
+
                $user = User::staticGet('nickname', $nickname);
                if (!$user) {
                $this->client_error(_('No such user.'));
@@ -45,7 +45,7 @@ class AvatarbynicknameAction extends Action {
                }
                $profile = $user->getProfile();
                if (!$profile) {
-               $this->client_error(_('No such profile.'));
+               $this->client_error(_('User has no profile.'));
                        return;
                }
                if ($size == 'original') {
@@ -53,7 +53,7 @@ class AvatarbynicknameAction extends Action {
                } else {
                        $avatar = $profile->getAvatar($size+0);
                }
-               
+
                if ($avatar) {
                        $url = $avatar->url;
                } else {