diff options
author | Zach Copley <zach@status.net> | 2010-05-26 00:41:18 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-26 00:41:18 +0000 |
commit | e913d157d2f8d686a208b604d1ed9c74867ea495 (patch) | |
tree | ace739bd04c9eab3323a804a2ea27fd3f7b4af41 | |
parent | 9193c110f14e09523791683e7799a45163b881c2 (diff) | |
parent | 80d1e86a7c54521f364600c85c9f29ff29aaa611 (diff) |
Merge branch 'more-notice-info'
-rw-r--r-- | classes/Notice.php | 8 |
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); |