From 23e796bab4e19348d77a94cbcd27cd3539838cc5 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 26 Apr 2017 13:24:27 +0200 Subject: Fixed follows docs --- mastodon/Mastodon.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 4717674..68f9e56 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -364,15 +364,6 @@ class Mastodon: params = self.__generate_params(locals(), ['id']) return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params) - def follows(self, uri): - """ - Follow a remote user by uri (username@domain). - - Returns a user dict. - """ - params = self.__generate_params(locals()) - return self.__api_request('POST', '/api/v1/follows', params) - def account_relationships(self, id): """ Fetch relationships (following, followed_by, blocking) of the logged in user to @@ -571,6 +562,15 @@ class Mastodon: """ return self.__api_request('POST', '/api/v1/accounts/' + str(id) + "/follow") + def follows(self, uri): + """ + Follow a remote user by uri (username@domain). + + Returns a user dict. + """ + params = self.__generate_params(locals()) + return self.__api_request('POST', '/api/v1/follows', params) + def account_unfollow(self, id): """ Unfollow a user. -- cgit v1.2.3