diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 6 |
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()) |