From: Mikael Nordfeldth Date: Thu, 7 Aug 2014 19:54:31 +0000 (+0200) Subject: Profile activityobject array outputs "summary" field X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8aa783241dd8a476b2b25ea75e0148fac287ce72;p=quix0rs-gnu-social.git Profile activityobject array outputs "summary" field --- diff --git a/classes/Profile.php b/classes/Profile.php index 94f83ab788..1af29b2620 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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. *