diff options
author | Evan Prodromou <evan@status.net> | 2010-02-21 13:03:13 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-21 13:03:13 -0500 |
commit | d5ba9e1b10071484ec9bdce9821207a37b446fc8 (patch) | |
tree | de54d71765433490ffd5b719076c8ced50a0e416 /lib/atomusernoticefeed.php | |
parent | 1a86bf9c65d2579d9245c6edcc968fed3d674f39 (diff) |
add feed-level author for user atom feeds
Diffstat (limited to 'lib/atomusernoticefeed.php')
-rw-r--r-- | lib/atomusernoticefeed.php | 6 |
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() |