parent::__construct($cur, $indent);
$this->user = $user;
if (!empty($user)) {
+
$profile = $user->getProfile();
+
$ao = ActivityObject::fromProfile($profile);
+
+ array_push($ao->extra, $profile->profileInfo($cur));
+
$this->addAuthorRaw($ao->asString('author'));
}
);
$this->setSubtitle($subtitle);
- $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
- $logo = ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_PROFILE_SIZE);
- $this->setLogo($logo);
+ $this->setLogo($profile->avatarUrl(AVATAR_PROFILE_SIZE));
$this->setUpdated('now');