summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-04 23:00:18 -0400
committerEvan Prodromou <evan@status.net>2010-09-04 23:00:18 -0400
commit4aca91d05d428c6e9fb7541c4d627e992b221c34 (patch)
tree32e46330bd024b591a1dc6cc03956516fe036ee9
parentcbcd811d614dda597868047cec2e59fcd9431671 (diff)
add in_reply_to_status_id if notice is from twitter
-rw-r--r--plugins/TwitterBridge/twitter.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php
index b8e545740..33d5443c2 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;
}