summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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()