forked from GNUsocial/gnu-social
Profile activityobject array outputs "summary" field
This commit is contained in:
parent
ebbc3e530b
commit
8aa783241d
@ -1324,6 +1324,7 @@ class Profile extends Managed_DataObject
|
|||||||
$object->id = $this->getUri();
|
$object->id = $this->getUri();
|
||||||
$object->title = $this->getBestName();
|
$object->title = $this->getBestName();
|
||||||
$object->link = $this->getUrl();
|
$object->link = $this->getUrl();
|
||||||
|
$object->summary = $this->getDescription();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$avatar = Avatar::getUploaded($this);
|
$avatar = Avatar::getUploaded($this);
|
||||||
@ -1390,6 +1391,11 @@ class Profile extends Managed_DataObject
|
|||||||
return $this->nickname;
|
return $this->nickname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDescription()
|
||||||
|
{
|
||||||
|
return $this->bio;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the best URI for a profile. Plugins may override.
|
* Returns the best URI for a profile. Plugins may override.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user