add feed-level author for user atom feeds
This commit is contained in:
parent
1a86bf9c65
commit
d5ba9e1b10
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user