From 15d466ebe6576aa34efa7d4b5bb008e0d2cbc116 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 4 Jun 2013 19:52:38 -0400 Subject: [PATCH] Don't add content as title for notes --- classes/Notice.php | 1 - lib/activity.php | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 541a850f0c..3891f431e4 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1508,7 +1508,6 @@ class Notice extends Managed_DataObject $act->time = strtotime($this->created); $act->link = $this->bestUrl(); $act->content = common_xml_safe_str($this->rendered); - $act->title = common_xml_safe_str($this->content); $profile = $this->getProfile(); diff --git a/lib/activity.php b/lib/activity.php index b8c9426268..2ec2176d39 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -589,7 +589,13 @@ class Activity } else { $xs->element('id', null, $this->id); - $xs->element('title', null, $this->title); + + if ($this->title) { + $xs->element('title', null, $this->title); + } else { + // Require element + $xs->element('title', null, ""); + } $xs->element('content', array('type' => 'html'), $this->content); -- 2.39.2