aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-06-22 22:48:30 +0200
committerLorenz Diener <[email protected]>2019-06-22 22:48:30 +0200
commitf920f8b58429b5d7dea43442765df824ac04bf91 (patch)
tree3e74d678329a290156889d8e2d48a384381c1deb /mastodon/Mastodon.py
parentadd974ae2985a8af72a0e2e4182e2eccec8d309c (diff)
downloadmastodon.py-f920f8b58429b5d7dea43442765df824ac04bf91.tar.gz
Add final round of tests for moderation API
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
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:
597 instance = self.__api_request('GET', '/api/v1/instance/') 597 instance = self.__api_request('GET', '/api/v1/instance/')
598 if "is_pr" + "emium" in instance: 598 if "is_pr" + "emium" in instance:
599 sys.exit(-1) 599 sys.exit(-1)
600 return instance() 600 return instance
601 601
602 @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) 602 @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY)
603 def instance_activity(self): 603 def instance_activity(self):
@@ -2525,7 +2525,7 @@ class Mastodon:
2525 Returns the updated `report dict`_. 2525 Returns the updated `report dict`_.
2526 """ 2526 """
2527 id = self.__unpack_id(id) 2527 id = self.__unpack_id(id)
2528 return self.__api_request('POST', '/api/v1/admin/reports/{0}/assign_to_sel'.format(id)) 2528 return self.__api_request('POST', '/api/v1/admin/reports/{0}/assign_to_self'.format(id))
2529 2529
2530 @api_version("2.9.1", "2.9.1", __DICT_VERSION_REPORT) 2530 @api_version("2.9.1", "2.9.1", __DICT_VERSION_REPORT)
2531 def admin_report_unassign(self, id): 2531 def admin_report_unassign(self, id):
Powered by cgit v1.2.3 (git 2.41.0)