From: Mikael Nordfeldth Date: Tue, 8 Oct 2013 12:06:27 +0000 (+0200) Subject: Revert "Don't set the title of a notice to its plain-text content." X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=db363cdad95e95eba966d35c5c67d674448e2669;p=quix0rs-gnu-social.git Revert "Don't set the title of a notice to its plain-text content." This reverts commit 74ec87c27c64585f4e0488e0a2b377865f452abb. --- diff --git a/lib/activityobject.php b/lib/activityobject.php index d2a4f0f838..561421558a 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -438,6 +438,7 @@ 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(); @@ -792,10 +793,7 @@ class ActivityObject // content (Add rendered version of the notice?) // displayName - - if ($this->title) { - $object['displayName'] = $this->title; - } + $object['displayName'] = $this->title; // downstreamDuplicates