Twitter: Fix @unfollow.

master
Valentin Lorentz 2013-07-16 09:39:00 +00:00
parent 981bbb9b74
commit fec7cb8529
1 changed files with 1 additions and 1 deletions

View File

@ -3237,7 +3237,7 @@ class Api(object):
Returns:
A twitter.User instance representing the discontinued friend.
'''
url = '%s/friendships/destroy/%s.json' % (self.base_url, user)
url = '%s/friendships/destroy.json' % (self.base_url,)
json = self._FetchUrl(url, post_data={'user': user})
data = self._ParseAndCheckTwitter(json)
return User.NewFromJsonDict(data)