Add repeated_id to SimpleStatusArray for Qvitter's benefit

This commit is contained in:
Mikael Nordfeldth 2015-03-13 00:02:48 +01:00
parent a647a4f6b3
commit 4d6b5e70df

View File

@ -280,6 +280,10 @@ class SharePlugin extends ActivityVerbHandlerPlugin
{ {
if ($scoped instanceof Profile) { if ($scoped instanceof Profile) {
$status['repeated'] = $scoped->hasRepeated($notice); $status['repeated'] = $scoped->hasRepeated($notice);
// Qvitter API wants the "repeated_id" value set too.
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
'repeat_of' => $notice->getID()));
$status['repeated_id'] = $repeated->getID();
} else { } else {
$status['repeated'] = false; $status['repeated'] = false;
} }