From: Zach Copley Date: Wed, 26 May 2010 00:39:44 +0000 (+0000) Subject: Add repeat info to statusnet:notice_info Atom element X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80d1e86a7c54521f364600c85c9f29ff29aaa611;p=quix0rs-gnu-social.git Add repeat info to statusnet:notice_info Atom element --- diff --git a/classes/Notice.php b/classes/Notice.php index d85c8cd33a..3d7d21533b 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1240,7 +1240,7 @@ class Notice extends Memcached_DataObject $noticeInfoAttr = array( 'local_id' => $this->id, // local notice ID (useful to clients for ordering) - 'source' => $this->source // the client name (source attribution) + 'source' => $this->source, // the client name (source attribution) ); $ns = $this->getSource(); @@ -1251,7 +1251,11 @@ class Notice extends Memcached_DataObject } if (!empty($cur)) { - $noticeInfoAttr['favorited'] = ($cur->hasFave($this)) ? 'true' : 'false'; + $noticeInfoAttr['favorite'] = ($cur->hasFave($this)) ? "true" : "false"; + } + + if (!empty($this->repeat_of)) { + $noticeInfoAttr['repeat_of'] = $this->repeat_of; } $xs->element('statusnet:notice_info', $noticeInfoAttr, null);