From: Evan Prodromou Date: Sun, 21 Feb 2010 18:03:13 +0000 (-0500) Subject: add feed-level author for user atom feeds X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5ba9e1b10071484ec9bdce9821207a37b446fc8;p=quix0rs-gnu-social.git add feed-level author for user atom feeds --- diff --git a/lib/atomusernoticefeed.php b/lib/atomusernoticefeed.php index 9f224325c6..f71c721fec 100644 --- a/lib/atomusernoticefeed.php +++ b/lib/atomusernoticefeed.php @@ -54,9 +54,15 @@ class AtomUserNoticeFeed extends AtomNoticeFeed * * @return void */ + function __construct($user = null, $indent = true) { parent::__construct($indent); $this->user = $user; + if (!empty($user)) { + $profile = $user->getProfile(); + $this->addAuthor($profile->getBestName(), + $user->uri); + } } function getUser()