make sure returned notice is a repeat, i.e. not a delete activity notice
This commit is contained in:
parent
1eba33590b
commit
5c4a7a1052
|
@ -281,7 +281,8 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
||||||
if ($status['repeated'] === true) {
|
if ($status['repeated'] === true) {
|
||||||
// Qvitter API wants the "repeated_id" value set too.
|
// Qvitter API wants the "repeated_id" value set too.
|
||||||
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
|
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
|
||||||
'repeat_of' => $notice->getID()));
|
'repeat_of' => $notice->getID(),
|
||||||
|
'verb' => ActivityVerb::SHARE));
|
||||||
$status['repeated_id'] = $repeated->getID();
|
$status['repeated_id'] = $repeated->getID();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -370,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user