]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Don't set the title of a notice to its plain-text content."
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 8 Oct 2013 12:06:27 +0000 (14:06 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 8 Oct 2013 12:06:27 +0000 (14:06 +0200)
This reverts commit 74ec87c27c64585f4e0488e0a2b377865f452abb.

lib/activityobject.php

index d2a4f0f838a72376c93f72594193d309ea47fdf5..561421558ab20e3b2a55a7b7456e5740f1aac421 100644 (file)
@@ -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