]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make sure returned notice is a repeat, i.e. not a delete activity notice
authorhannes <h@nnesmannerhe.im>
Sun, 22 Nov 2015 20:28:07 +0000 (20:28 +0000)
committerhannes <h@nnesmannerhe.im>
Sun, 22 Nov 2015 20:28:07 +0000 (20:28 +0000)
plugins/Share/SharePlugin.php

index 1f6ddbaa3fb723dea736748bb2217ff7247f83b1..afee7a6ef332454bf85c94cb3889c23016b37f85 100644 (file)
@@ -281,7 +281,8 @@ class SharePlugin extends ActivityVerbHandlerPlugin
         if ($status['repeated'] === true) {
             // Qvitter API wants the "repeated_id" value set too.
             $repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
-                                              'repeat_of' => $notice->getID()));
+                                              'repeat_of' => $notice->getID(),
+                                              'verb' => ActivityVerb::SHARE));
             $status['repeated_id'] = $repeated->getID();
         }
     }
@@ -370,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin
 
         return true;
     }
-}
+}
\ No newline at end of file