Commit d9ed2a0f authored by mmn's avatar mmn

repeated did not always find the Notice (deleted?)

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