summaryrefslogtreecommitdiff
path: root/lib/activity.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-23 14:26:34 -0800
committerZach Copley <zach@status.net>2010-02-23 14:26:34 -0800
commitfa178a8aa7d6e5ade76eef12ac0ca49aa10f5cdc (patch)
treef75b8bbe0af0532a9cb85749bb1cb3fc6c5eb561 /lib/activity.php
parentd6ad7332475f1cc4ab45d55fc04ef491d5f3999d (diff)
Add poco:displayName to Atom output for person object
Diffstat (limited to 'lib/activity.php')
-rw-r--r--lib/activity.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/activity.php b/lib/activity.php
index 04c57c561..853741a9a 100644
--- a/lib/activity.php
+++ b/lib/activity.php
@@ -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);
}