From: Mikael Nordfeldth Date: Thu, 12 Mar 2015 20:56:18 +0000 (+0100) Subject: Share never actually set the repeat_of value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ff11ac97840437ef25ba5a1ae1fde400f27f954;p=quix0rs-gnu-social.git Share never actually set the repeat_of value --- diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 582f7d3e2e..bfcf931a8e 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -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.