summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 13:03:13 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 13:03:13 -0500
commitd5ba9e1b10071484ec9bdce9821207a37b446fc8 (patch)
treede54d71765433490ffd5b719076c8ced50a0e416
parent1a86bf9c65d2579d9245c6edcc968fed3d674f39 (diff)
add feed-level author for user atom feeds
-rw-r--r--lib/atomusernoticefeed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/atomusernoticefeed.php b/lib/atomusernoticefeed.php
index 9f224325c..f71c721fe 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()