]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add feed-level author for user atom feeds
authorEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 18:03:13 +0000 (13:03 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 18:03:13 +0000 (13:03 -0500)
lib/atomusernoticefeed.php

index 9f224325c63b03d52773c4fd3f35acc70c44a83a..f71c721feccf649283928859565676582b75e4ad 100644 (file)
@@ -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()