Skip to content

Commit

Permalink
Added in_reply_to_status_id option for replying to statuses.
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunemaker <[email protected]>
  • Loading branch information
anthonycrumley authored and jnunemaker committed Jan 5, 2009
1 parent 3475e53 commit 2ecceda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/twitter/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ecceda

Please sign in to comment.