Commit 4d6b5e70 authored by mmn's avatar mmn

Add repeated_id to SimpleStatusArray for Qvitter's benefit

parent a647a4f6
......@@ -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;
}
......
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