From f920f8b58429b5d7dea43442765df824ac04bf91 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 22:48:30 +0200 Subject: Add final round of tests for moderation API --- mastodon/Mastodon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 53cb192..8a619ec 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -597,7 +597,7 @@ class Mastodon: instance = self.__api_request('GET', '/api/v1/instance/') if "is_pr" + "emium" in instance: sys.exit(-1) - return instance() + return instance @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) def instance_activity(self): @@ -2525,7 +2525,7 @@ class Mastodon: Returns the updated `report dict`_. """ id = self.__unpack_id(id) - return self.__api_request('POST', '/api/v1/admin/reports/{0}/assign_to_sel'.format(id)) + return self.__api_request('POST', '/api/v1/admin/reports/{0}/assign_to_self'.format(id)) @api_version("2.9.1", "2.9.1", __DICT_VERSION_REPORT) def admin_report_unassign(self, id): -- cgit v1.2.3