From: Mikael Nordfeldth Date: Thu, 12 Mar 2015 23:02:48 +0000 (+0100) Subject: Add repeated_id to SimpleStatusArray for Qvitter's benefit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d6b5e70dff54f168d5e38ef53405ab184af4538;p=quix0rs-gnu-social.git Add repeated_id to SimpleStatusArray for Qvitter's benefit --- 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; }