Permalink
Browse files

Fixed issue with friendship_create. Twitter assumed if follow paramet…

…er was there it should turn notifications on even for follow=false. friendship_create now only sends follow if follow is true.
  • Loading branch information...
1 parent 61b8708 commit 5ebf39c0538a3dfd48c6a1dbdf8558305737ce69 @jnunemaker jnunemaker committed Apr 10, 2009
Showing with 7 additions and 1 deletion.
  1. +4 −0 History
  2. +3 −1 lib/twitter/base.rb
View
@@ -1,3 +1,7 @@
+0.5.3 - April 10, 2009
+* 1 minor fix
+ * Twitter API assumed follow true whether true or false. Now only sending follow along to request if follow is true for calls to friendship_create.
+
0.5.2 - April 8, 2009
* 4 minor fixes
* added mash as an install dependency, forgot it initially
View
@@ -69,7 +69,9 @@ def direct_message_destroy(id)
end
def friendship_create(id, follow=false)
- perform_post("/friendships/create/#{id}.json", :body => {:follow => follow})
+ body = {}
+ body.merge!(:follow => follow) if follow
+ perform_post("/friendships/create/#{id}.json", :body => body)
end
def friendship_destroy(id)

0 comments on commit 5ebf39c

Please sign in to comment.