We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 74ec87c2 authored by Evan Prodromou's avatar Evan Prodromou

Don't set the title of a notice to its plain-text content.

parent 15d466eb
......@@ -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
$object['displayName'] = $this->title;
if ($this->title) {
$object['displayName'] = $this->title;
}
// downstreamDuplicates
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment