From: hannes Date: Sun, 22 Nov 2015 20:28:07 +0000 (+0000) Subject: make sure returned notice is a repeat, i.e. not a delete activity notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c4a7a10;p=quix0rs-gnu-social.git make sure returned notice is a repeat, i.e. not a delete activity notice --- diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 1f6ddbaa3f..afee7a6ef3 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -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