]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletaglist.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / peopletaglist.php
index 2d0797f85686000b6887ea3e61aca76c32cf5a5a..5c027d75869f6a9b539b54377e998d16cc4d4ddc 100644 (file)
@@ -283,11 +283,9 @@ class PeopletagListItem extends Widget
 
     function showAvatar($size=AVATAR_STREAM_SIZE)
     {
-        $avatar = $this->profile->getAvatar($size);
+        $avatarUrl = $this->profile->avatarUrl($size);
 
-        $this->out->element('img', array('src' => ($avatar) ?
-                                         $avatar->displayUrl() :
-                                         Avatar::defaultImage($size),
+        $this->out->element('img', array('src' => $avatarUrl,
                                          'class' => 'avatar photo',
                                          'width' => $size,
                                          'height' => $size,