]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't set the title of a notice to its plain-text content.
authorEvan Prodromou <evan@e14n.com>
Wed, 5 Jun 2013 02:27:29 +0000 (22:27 -0400)
committerEvan Prodromou <evan@e14n.com>
Wed, 5 Jun 2013 02:28:45 +0000 (22:28 -0400)
lib/activityobject.php

index 9640f025b2faace3cd1446d120262c264eebd749..0eff87146f42a67c034fc5424fe65710482290de 100644 (file)
@@ -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