]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/repliesrss.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / actions / repliesrss.php
index 0c71130718ac6205237eef3d72238d4aaee2b34d..8a8f64e0c2b40dcbe8cf0355f2801f07414d7ecd 100644 (file)
@@ -78,13 +78,8 @@ class RepliesrssAction extends Rss10Action
 
     function getImage()
     {
-        $user = $this->user;
-        $profile = $user->getProfile();
-        if (!$profile) {
-            return null;
-        }
-        $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
-        return ($avatar) ? $avatar->url : null;
+        $profile = $this->user->getProfile();
+        return $profile->avatarUrl(AVATAR_PROFILE_SIZE);
     }
 
     function isReadOnly($args)