forked from GNUsocial/gnu-social
Add repeat info to statusnet:notice_info Atom element
This commit is contained in:
parent
d9a89d174a
commit
80d1e86a7c
@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user