Don't set the title of a notice to its plain-text content.
This commit is contained in:
parent
15d466ebe6
commit
74ec87c27c
|
@ -433,7 +433,6 @@ class ActivityObject
|
|||
$object->type = (empty($notice->object_type)) ? ActivityObject::NOTE : $notice->object_type;
|
||||
|
||||
$object->id = $notice->uri;
|
||||
$object->title = $notice->content;
|
||||
$object->content = $notice->rendered;
|
||||
$object->link = $notice->bestUrl();
|
||||
|
||||
|
@ -687,7 +686,10 @@ class ActivityObject
|
|||
// content (Add rendered version of the notice?)
|
||||
|
||||
// displayName
|
||||
|
||||
if ($this->title) {
|
||||
$object['displayName'] = $this->title;
|
||||
}
|
||||
|
||||
// downstreamDuplicates
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user