diff --git a/classes/Notice.php b/classes/Notice.php index 2c404e2550..f047882f52 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1502,7 +1502,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);