use wcf\data\ITitledLinkObject;
use wcf\data\trophy\Trophy;
use wcf\data\trophy\TrophyCache;
+use wcf\data\user\avatar\AvatarDecorator;
use wcf\data\user\avatar\DefaultAvatar;
use wcf\data\user\avatar\Gravatar;
use wcf\data\user\avatar\IUserAvatar;
protected $followingUserIDs;
/**
- * user avatar
- * @var IUserAvatar
+ * @var AvatarDecorator
*/
protected $avatar;
/**
* Returns the user's avatar.
*
- * @return IUserAvatar
+ * @return AvatarDecorator
*/
public function getAvatar()
{
if ($this->avatar === null) {
$this->avatar = new DefaultAvatar($this->username ?: '');
}
+
+ $this->avatar = new AvatarDecorator($this->avatar);
}
return $this->avatar;