From 5f44998dd201beb871f06c0813b3dc69d387f7da Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 17 Apr 2018 17:49:08 +0200 Subject: First steps to 2.3.0 support --- mastodon/Mastodon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mastodon/Mastodon.py') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1056d7a..5a32be0 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1143,9 +1143,9 @@ class Mastodon: url = '/api/v1/accounts/{0}/unmute'.format(str(id)) return self.__api_request('POST', url) - @api_version("1.1.1", "2.1.0") + @api_version("1.1.1", "2.3.0") def account_update_credentials(self, display_name=None, note=None, - avatar=None, header=None): + avatar=None, header=None, locked=None): """ Update the profile for the currently logged-in user. @@ -1154,6 +1154,8 @@ class Mastodon: 'avatar' and 'header' are images encoded in base64, prepended by a content-type (for example: 'data:image/png;base64,iVBORw0KGgoAAAA[...]') + 'locked' specifies whether the user needs to manually approve follow requests. + Returns the updated `user dict` of the logged-in user. """ params = self.__generate_params(locals()) -- cgit v1.2.3