Add poco:displayName to Atom output for person object
This commit is contained in:
parent
d6ad733247
commit
fa178a8aa7
@ -104,6 +104,7 @@ class PoCo
|
|||||||
function __construct($profile)
|
function __construct($profile)
|
||||||
{
|
{
|
||||||
$this->preferredUsername = $profile->nickname;
|
$this->preferredUsername = $profile->nickname;
|
||||||
|
$this->displayName = $profile->getBestName();
|
||||||
|
|
||||||
$this->note = $profile->bio;
|
$this->note = $profile->bio;
|
||||||
$this->address = new PoCoAddress($profile->location);
|
$this->address = new PoCoAddress($profile->location);
|
||||||
@ -129,6 +130,12 @@ class PoCo
|
|||||||
$this->preferredUsername
|
$this->preferredUsername
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$xs->element(
|
||||||
|
'poco:displayName',
|
||||||
|
null,
|
||||||
|
$this->displayName
|
||||||
|
);
|
||||||
|
|
||||||
if (!empty($this->note)) {
|
if (!empty($this->note)) {
|
||||||
$xs->element('poco:note', null, $this->note);
|
$xs->element('poco:note', null, $this->note);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user