repeated did not always find the Notice (deleted?)
This commit is contained in:
parent
4d6b5e70df
commit
d9ed2a0fae
@ -283,7 +283,9 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
||||
// 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();
|
||||
if ($repeated instanceof Notice) {
|
||||
$status['repeated_id'] = $repeated->getID();
|
||||
}
|
||||
} else {
|
||||
$status['repeated'] = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user