]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
repeated did not always find the Notice (deleted?)
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 12 Mar 2015 23:19:08 +0000 (00:19 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 12 Mar 2015 23:19:08 +0000 (00:19 +0100)
plugins/Share/SharePlugin.php

index 70bb01adc497b82eb729c63de694087ca183afcb..eb874d2941cf193aaa749ade1e4a2766f960d610 100644 (file)
@@ -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;
         }