summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-26 00:41:18 +0000
committerZach Copley <zach@status.net>2010-05-26 00:41:18 +0000
commite913d157d2f8d686a208b604d1ed9c74867ea495 (patch)
treeace739bd04c9eab3323a804a2ea27fd3f7b4af41
parent9193c110f14e09523791683e7799a45163b881c2 (diff)
parent80d1e86a7c54521f364600c85c9f29ff29aaa611 (diff)
Merge branch 'more-notice-info'
-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);