From 0ff11ac97840437ef25ba5a1ae1fde400f27f954 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 12 Mar 2015 21:56:18 +0100 Subject: [PATCH] Share never actually set the repeat_of value --- plugins/Share/SharePlugin.php | 4 ++++ 1 file changed, 4 insertions(+) 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.