]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/togglepeopletag.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / togglepeopletag.php
index 156ce30af5fbfeb3592c40894a412943f0224c07..fdbf2b7cdb959f4c769b8e78c2480372ff44f214 100644 (file)
@@ -306,9 +306,8 @@ class TaggedProfileItem extends Widget
         $this->out->elementStart('a', array('class' => 'url',
                                             'href' => $this->profile->profileurl,
                                             'title' => $this->profile->getBestName()));
-        $avatar = $this->profile->getAvatar(AVATAR_MINI_SIZE);
-        $this->out->element('img', array('src' => (($avatar) ? $avatar->displayUrl() :
-                                         Avatar::defaultImage(AVATAR_MINI_SIZE)),
+        $avatarUrl = $this->profile->avatarUrl(AVATAR_MINI_SIZE);
+        $this->out->element('img', array('src' => $avatarUrl,
                                          'width' => AVATAR_MINI_SIZE,
                                          'height' => AVATAR_MINI_SIZE,
                                          'class' => 'avatar photo',