Permalink
Browse files

Added in_reply_to_status_id option for replying to statuses.

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  • Loading branch information...
1 parent 3475e53 commit 2ecceda9fa74d486e3ba62edba7fa42a443191fa @anthonycrumley anthonycrumley committed with jnunemaker Dec 7, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/twitter/base.rb
View
@@ -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

0 comments on commit 2ecceda

Please sign in to comment.