From 82cc87b49b2e0781470e6b1276fac455ad4190e8 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 14 Jul 2018 01:02:37 +0200 Subject: Fix #138 --- mastodon/Mastodon.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 2f7868b..7cc7f1b 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -766,6 +766,10 @@ class Mastodon: Returns a list of `user dicts`_. """ params = self.__generate_params(locals()) + + if params["following"] == False: + del params["following"] + return self.__api_request('GET', '/api/v1/accounts/search', params) @api_version("2.1.0", "2.1.0", __DICT_VERSION_LIST) -- cgit v1.2.3