From: Evan Prodromou Date: Sun, 5 Sep 2010 03:00:18 +0000 (-0400) Subject: add in_reply_to_status_id if notice is from twitter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4aca91d05d428c6e9fb7541c4d627e992b221c34;p=quix0rs-gnu-social.git add in_reply_to_status_id if notice is from twitter --- diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php index b8e5457402..33d5443c22 100644 --- a/plugins/TwitterBridge/twitter.php +++ b/plugins/TwitterBridge/twitter.php @@ -196,6 +196,10 @@ function twitter_update_params($notice) $params['lat'] = $notice->lat; $params['long'] = $notice->lon; } + if (!empty($notice->reply_to) && is_twitter_notice($notice->reply_to)) { + $reply = Notice::staticGet('id', $notice->reply_to); + $params['in_reply_to_status_id'] = twitter_status_id($reply); + } return $params; }