summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-26 00:39:44 +0000
committerZach Copley <zach@status.net>2010-05-26 00:39:44 +0000
commit80d1e86a7c54521f364600c85c9f29ff29aaa611 (patch)
tree53fa33fa7e6b872d639443f9095321b7dda5a241
parentd9a89d174ad1cb28669a8f3c76be23f27c182d58 (diff)
Add repeat info to statusnet:notice_info Atom element
-rw-r--r--classes/Notice.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index d85c8cd33..3d7d21533 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);