Commit fa178a8a authored by Zach Copley's avatar Zach Copley

Add poco:displayName to Atom output for person object

parent d6ad7332
......@@ -104,6 +104,7 @@ class PoCo
function __construct($profile)
{
$this->preferredUsername = $profile->nickname;
$this->displayName = $profile->getBestName();
$this->note = $profile->bio;
$this->address = new PoCoAddress($profile->location);
......@@ -129,6 +130,12 @@ class PoCo
$this->preferredUsername
);
$xs->element(
'poco:displayName',
null,
$this->displayName
);
if (!empty($this->note)) {
$xs->element('poco:note', null, $this->note);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment