Don't add content as title for notes
This commit is contained in:
parent
759754555d
commit
15d466ebe6
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user