]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:45:46 +0000 (21:45 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:45:46 +0000 (21:45 +0100)
classes/Profile.php
plugins/Share/SharePlugin.php

index 49addfe47fe887d72d84f73c57fde62c25ed1098..78ef18484c7e0d9f7c9f2559cb419783f39fd1ad 100644 (file)
@@ -1242,8 +1242,9 @@ class Profile extends Managed_DataObject
     {
         // XXX: not really a pkey, but should work
 
-        $notice = Notice::pkeyGet(array('profile_id' => $this->id,
-                                        'repeat_of' => $notice->id));
+        $notice = Notice::pkeyGet(array('profile_id' => $this->getID(),
+                                        'repeat_of' => $notice->getID(),
+                                        'verb' => ActivityVerb::SHARE));
 
         return !empty($notice);
     }
index 1f6ddbaa3fb723dea736748bb2217ff7247f83b1..84174a0440895d597e657d99f014b04bf66e573b 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();
         }
     }