aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 393d021..0d1750f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -2107,7 +2107,8 @@ class Mastodon:
2107 def account_update_credentials(self, display_name=None, note=None, 2107 def account_update_credentials(self, display_name=None, note=None,
2108 avatar=None, avatar_mime_type=None, 2108 avatar=None, avatar_mime_type=None,
2109 header=None, header_mime_type=None, 2109 header=None, header_mime_type=None,
2110 locked=None, fields=None): 2110 locked=None, bot=None,
2111 discoverable=None, fields=None):
2111 """ 2112 """
2112 Update the profile for the currently logged-in user. 2113 Update the profile for the currently logged-in user.
2113 2114
@@ -2118,6 +2119,8 @@ class Mastodon:
2118 2119
2119 'locked' specifies whether the user needs to manually approve follow requests. 2120 'locked' specifies whether the user needs to manually approve follow requests.
2120 2121
2122 'bot' specifies whether the user should be set to a bot.
2123
2121 'fields' can be a list of up to four name-value pairs (specified as tuples) to 2124 'fields' can be a list of up to four name-value pairs (specified as tuples) to
2122 appear as semi-structured information in the users profile. 2125 appear as semi-structured information in the users profile.
2123 2126
@@ -2136,7 +2139,7 @@ class Mastodon:
2136 2139
2137 # Load header, if specified 2140 # Load header, if specified
2138 if not header is None: 2141 if not header is None:
2139 if header_mime_type is None and (isinstance(avatar, str) and os.path.isfile(header)): 2142 if header_mime_type is None and (isinstance(header, str) and os.path.isfile(header)):
2140 header_mime_type = guess_type(header) 2143 header_mime_type = guess_type(header)
2141 header = open(header, 'rb') 2144 header = open(header, 'rb')
2142 2145
Powered by cgit v1.2.3 (git 2.41.0)