From: Mikael Nordfeldth Date: Thu, 12 Mar 2015 23:19:08 +0000 (+0100) Subject: repeated did not always find the Notice (deleted?) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d9ed2a0;p=quix0rs-gnu-social.git repeated did not always find the Notice (deleted?) --- diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 70bb01adc4..eb874d2941 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -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; }