X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ftogglepeopletag.php;h=fdbf2b7cdb959f4c769b8e78c2480372ff44f214;hb=9c99082a46bb12fc592cb6c0582c509c1e9a0b1f;hp=156ce30af5fbfeb3592c40894a412943f0224c07;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;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',