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