$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();
} 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);