X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=lib%2Fatomusernoticefeed.php;h=7b7f0a749f32910598d9b7c357b325422f95fdf3;hb=ac5b7095b3c270c3a91a704afd7a47e0f4e180c1;hp=3398cc8b4d88e48af695b28c836010a47618f285;hpb=b09276635c6e20290f0955c4f86ff4a13c7774de;p=quix0rs-gnu-social.git diff --git a/lib/atomusernoticefeed.php b/lib/atomusernoticefeed.php index 3398cc8b4d..7b7f0a749f 100644 --- a/lib/atomusernoticefeed.php +++ b/lib/atomusernoticefeed.php @@ -62,26 +62,11 @@ class AtomUserNoticeFeed extends AtomNoticeFeed $profile = $user->getProfile(); - $ao = ActivityObject::fromProfile($profile); - - $ao->extra[] = $profile->profileInfo($cur); - - // XXX: For users, we generate an author _AND_ an - // This is for backward compatibility with clients (especially - // StatusNet's clients) that assume the Atom will conform to an - // older version of the Activity Streams API. Subject should be - // removed in future versions of StatusNet. + $ao = $profile->asActivityObject(); + + array_push($ao->extra, $profile->profileInfo($this->scoped)); $this->addAuthorRaw($ao->asString('author')); - - $depMsg = 'Deprecation warning: activity:subject is present ' - . 'only for backward compatibility. It will be ' - . 'removed in the next version of StatusNet.'; - - $this->addAuthorRaw( - "\n" - . $ao->asString('activity:subject') - ); } // TRANS: Title in atom user notice feed. %s is a user name. @@ -97,9 +82,7 @@ class AtomUserNoticeFeed extends AtomNoticeFeed ); $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');