Add repeated_id to SimpleStatusArray for Qvitter's benefit
This commit is contained in:
parent
a647a4f6b3
commit
4d6b5e70df
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user