We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e913d157 authored by Zach Copley's avatar Zach Copley

Merge branch 'more-notice-info'

parents 9193c110 80d1e86a
...@@ -1240,7 +1240,7 @@ class Notice extends Memcached_DataObject ...@@ -1240,7 +1240,7 @@ class Notice extends Memcached_DataObject
$noticeInfoAttr = array( $noticeInfoAttr = array(
'local_id' => $this->id, // local notice ID (useful to clients for ordering) '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(); $ns = $this->getSource();
...@@ -1251,7 +1251,11 @@ class Notice extends Memcached_DataObject ...@@ -1251,7 +1251,11 @@ class Notice extends Memcached_DataObject
} }
if (!empty($cur)) { 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); $xs->element('statusnet:notice_info', $noticeInfoAttr, null);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment