]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add in_reply_to_status_id if notice is from twitter
authorEvan Prodromou <evan@status.net>
Sun, 5 Sep 2010 03:00:18 +0000 (23:00 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 5 Sep 2010 03:00:18 +0000 (23:00 -0400)
plugins/TwitterBridge/twitter.php

index b8e5457402b46018b001b9834ac610b3f81f815a..33d5443c229b98eb86b9c94a32bd38d0847d7b88 100644 (file)
@@ -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;
 }