aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-17 17:49:08 +0200
committerLorenz Diener <[email protected]>2018-04-17 17:49:08 +0200
commit5f44998dd201beb871f06c0813b3dc69d387f7da (patch)
treef1f87cc7d136986e44ce812c38522a61b3375828 /mastodon
parent78d3b3a5dff7fb465a21fbade09e972e9d8f0fbf (diff)
downloadmastodon.py-5f44998dd201beb871f06c0813b3dc69d387f7da.tar.gz
First steps to 2.3.0 support
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py6
1 files changed, 4 insertions, 2 deletions
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:
1143 url = '/api/v1/accounts/{0}/unmute'.format(str(id)) 1143 url = '/api/v1/accounts/{0}/unmute'.format(str(id))
1144 return self.__api_request('POST', url) 1144 return self.__api_request('POST', url)
1145 1145
1146 @api_version("1.1.1", "2.1.0") 1146 @api_version("1.1.1", "2.3.0")
1147 def account_update_credentials(self, display_name=None, note=None, 1147 def account_update_credentials(self, display_name=None, note=None,
1148 avatar=None, header=None): 1148 avatar=None, header=None, locked=None):
1149 """ 1149 """
1150 Update the profile for the currently logged-in user. 1150 Update the profile for the currently logged-in user.
1151 1151
@@ -1154,6 +1154,8 @@ class Mastodon:
1154 'avatar' and 'header' are images encoded in base64, prepended by a content-type 1154 'avatar' and 'header' are images encoded in base64, prepended by a content-type
1155 (for example: 'data:image/png;base64,iVBORw0KGgoAAAA[...]') 1155 (for example: 'data:image/png;base64,iVBORw0KGgoAAAA[...]')
1156 1156
1157 'locked' specifies whether the user needs to manually approve follow requests.
1158
1157 Returns the updated `user dict` of the logged-in user. 1159 Returns the updated `user dict` of the logged-in user.
1158 """ 1160 """
1159 params = self.__generate_params(locals()) 1161 params = self.__generate_params(locals())
Powered by cgit v1.2.3 (git 2.41.0)