]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add poco:displayName to Atom output for person object
authorZach Copley <zach@status.net>
Tue, 23 Feb 2010 22:26:34 +0000 (14:26 -0800)
committerZach Copley <zach@status.net>
Tue, 23 Feb 2010 22:26:34 +0000 (14:26 -0800)
lib/activity.php

index 04c57c561c53f95db2a54fbf25c14233ce593929..853741a9a1ce0867c34ae374fff78ecb0cfe84c1 100644 (file)
@@ -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);
         }