add feed-level author for user atom feeds

This commit is contained in:
Evan Prodromou 2010-02-21 13:03:13 -05:00
parent 1a86bf9c65
commit d5ba9e1b10

View 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()