From dde4c39600050164429b5d05fe986df3d7d593fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Fri, 2 Dec 2022 23:48:39 +0100 Subject: refactor: use f-strings without bug --- mastodon/accounts.py | 2 +- mastodon/admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mastodon') diff --git a/mastodon/accounts.py b/mastodon/accounts.py index 3d10088..cd43c57 100644 --- a/mastodon/accounts.py +++ b/mastodon/accounts.py @@ -392,7 +392,7 @@ class Mastodon(Internals): Returns a :ref:`relationship dict ` containing the updated relationship to the user. """ id = self.__unpack_id(id) - return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute', params) + return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute') @api_version("1.1.1", "3.1.0", _DICT_VERSION_ACCOUNT) def account_update_credentials(self, display_name=None, note=None, diff --git a/mastodon/admin.py b/mastodon/admin.py index 422be35..405b30b 100644 --- a/mastodon/admin.py +++ b/mastodon/admin.py @@ -212,7 +212,7 @@ class Mastodon(Internals): Returns the updated :ref:`admin account dict `. """ id = self.__unpack_id(id) - return self.__api_request('POST', f'/api/v1/admin/accounts/{f}/unsensitive') + return self.__api_request('POST', f'/api/v1/admin/accounts/{id}/unsensitive') @api_version("2.9.1", "2.9.1", "2.9.1") def admin_account_moderate(self, id, action=None, report_id=None, warning_preset_id=None, text=None, send_email_notification=True): -- cgit v1.2.3