]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Profile activityobject array outputs "summary" field
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Aug 2014 19:54:31 +0000 (21:54 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Aug 2014 19:54:31 +0000 (21:54 +0200)
classes/Profile.php

index 94f83ab788a1ca388168d1bfb80dec1251c2ccb1..1af29b262090c11d94de624f6ad1feff7d073a73 100644 (file)
@@ -1324,6 +1324,7 @@ class Profile extends Managed_DataObject
             $object->id     = $this->getUri();
             $object->title  = $this->getBestName();
             $object->link   = $this->getUrl();
+            $object->summary = $this->getDescription();
 
             try {
                 $avatar = Avatar::getUploaded($this);
@@ -1390,6 +1391,11 @@ class Profile extends Managed_DataObject
         return $this->nickname;
     }
 
+    public function getDescription()
+    {
+        return $this->bio;
+    }
+
     /**
      * Returns the best URI for a profile. Plugins may override.
      *