From d9ed2a0fae4e1eeacf4c513bf48b4bf368349456 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 13 Mar 2015 00:19:08 +0100 Subject: [PATCH] repeated did not always find the Notice (deleted?) --- plugins/Share/SharePlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }