]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/atomusernoticefeed.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / atomusernoticefeed.php
index fb0ac5f8313c88cd80504cfca650fb393d4a8d8d..5180725722d23dff75d5ff2315e1d9f2b3fdfdd9 100644 (file)
@@ -97,9 +97,7 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
         );
         $this->setSubtitle($subtitle);
 
-        $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
-        $logo = ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_PROFILE_SIZE);
-        $this->setLogo($logo);
+        $this->setLogo($profile->avatarUrl(AVATAR_PROFILE_SIZE));
 
         $this->setUpdated('now');