From 460d80d09ee8ab43549db044be09f0f99d8fdab0 Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@e14n.com>
Date: Tue, 4 Jun 2013 22:27:29 -0400
Subject: [PATCH] Don't set the title of a notice to its plain-text content.

---
 lib/activityobject.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/activityobject.php b/lib/activityobject.php
index 9640f025b2..0eff87146f 100644
--- a/lib/activityobject.php
+++ b/lib/activityobject.php
@@ -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
 
-- 
2.39.5