From 4d6b5e70dff54f168d5e38ef53405ab184af4538 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 13 Mar 2015 00:02:48 +0100 Subject: [PATCH] Add repeated_id to SimpleStatusArray for Qvitter's benefit --- plugins/Share/SharePlugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 69761a5f3d..70bb01adc4 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -280,6 +280,10 @@ class SharePlugin extends ActivityVerbHandlerPlugin { if ($scoped instanceof Profile) { $status['repeated'] = $scoped->hasRepeated($notice); + // Qvitter API wants the "repeated_id" value set too. + $repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(), + 'repeat_of' => $notice->getID())); + $status['repeated_id'] = $repeated->getID(); } else { $status['repeated'] = false; } -- 2.39.5