]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Share never actually set the repeat_of value
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 12 Mar 2015 20:56:18 +0000 (21:56 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 12 Mar 2015 20:56:18 +0000 (21:56 +0100)
plugins/Share/SharePlugin.php

index 582f7d3e2e0de4e2a4b1d893230e59ba97052a97..bfcf931a8ed520a58c06529b2803a3d9e536ed03 100644 (file)
@@ -122,6 +122,10 @@ class SharePlugin extends ActivityVerbHandlerPlugin
             return false;
         }
 
+        // Setting this here because when the algorithm gets back to
+        // Notice::saveActivity it will update the Notice object.
+        $stored->repeat_of = $sharedNotice->getID();
+
         // We don't have to save a repeat in a separate table, we can
         // find repeats by just looking at the notice.repeat_of field.