Revert "Don't set the title of a notice to its plain-text content."
This reverts commit 74ec87c27c64585f4e0488e0a2b377865f452abb.
This commit is contained in:
parent
1d1951d4b0
commit
db363cdad9
@ -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
|
||||||
|
|
||||||
if ($this->title) {
|
|
||||||
$object['displayName'] = $this->title;
|
$object['displayName'] = $this->title;
|
||||||
}
|
|
||||||
|
|
||||||
// downstreamDuplicates
|
// downstreamDuplicates
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user