From 2ecceda9fa74d486e3ba62edba7fa42a443191fa Mon Sep 17 00:00:00 2001 From: anthonycrumley Date: Mon, 8 Dec 2008 05:14:08 +0800 Subject: [PATCH] Added in_reply_to_status_id option for replying to statuses. Signed-off-by: John Nunemaker --- lib/twitter/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/twitter/base.rb b/lib/twitter/base.rb index 9ad354161..f1b5051b5 100644 --- a/lib/twitter/base.rb +++ b/lib/twitter/base.rb @@ -159,6 +159,7 @@ def unblock(id) def post(status, options={}) form_data = {'status' => status} form_data.merge!({'source' => options[:source]}) if options[:source] + form_data.merge!({'in_reply_to_status_id' => options[:in_reply_to_status_id]}) if options[:in_reply_to_status_id] Status.new_from_xml(request('statuses/update.xml', :auth => true, :method => :post, :form_data => form_data)) end alias :update :post