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
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function __construct($user = null, $indent = true) {
|
function __construct($user = null, $indent = true) {
|
||||||
parent::__construct($indent);
|
parent::__construct($indent);
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
|
if (!empty($user)) {
|
||||||
|
$profile = $user->getProfile();
|
||||||
|
$this->addAuthor($profile->getBestName(),
|
||||||
|
$user->uri);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUser()
|
function getUser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user