X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftogglepeopletag.php;h=fdbf2b7cdb959f4c769b8e78c2480372ff44f214;hb=b0dfc70a54e5e184023ed982dfaf5439041e9708;hp=156ce30af5fbfeb3592c40894a412943f0224c07;hpb=a7e748479c273ddecfe9fdbd72670fe1abe766bf;p=quix0rs-gnu-social.git diff --git a/lib/togglepeopletag.php b/lib/togglepeopletag.php index 156ce30af5..fdbf2b7cdb 100644 --- a/lib/togglepeopletag.php +++ b/lib/togglepeopletag.php @@ -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',