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
1 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,10 @@ class SharePlugin extends ActivityVerbHandlerPlugin
{
if ($scoped instanceof Profile) {
$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 {
$status['repeated'] = false;
}