kopia lustrzana https://github.com/halcy/Mastodon.py
refactor: use f-strings without bug
rodzic
f5d4fbc1f0
commit
dde4c39600
|
@ -392,7 +392,7 @@ class Mastodon(Internals):
|
||||||
Returns a :ref:`relationship dict <relationship dict>` containing the updated relationship to the user.
|
Returns a :ref:`relationship dict <relationship dict>` containing the updated relationship to the user.
|
||||||
"""
|
"""
|
||||||
id = self.__unpack_id(id)
|
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)
|
@api_version("1.1.1", "3.1.0", _DICT_VERSION_ACCOUNT)
|
||||||
def account_update_credentials(self, display_name=None, note=None,
|
def account_update_credentials(self, display_name=None, note=None,
|
||||||
|
|
|
@ -212,7 +212,7 @@ class Mastodon(Internals):
|
||||||
Returns the updated :ref:`admin account dict <admin account dict>`.
|
Returns the updated :ref:`admin account dict <admin account dict>`.
|
||||||
"""
|
"""
|
||||||
id = self.__unpack_id(id)
|
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")
|
@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):
|
def admin_account_moderate(self, id, action=None, report_id=None, warning_preset_id=None, text=None, send_email_notification=True):
|
||||||
|
|
Ładowanie…
Reference in New Issue