From aa57929d1e9484fb2b4c0a675efae12547ddc8d0 Mon Sep 17 00:00:00 2001 From: Gareth Dunstone Date: Fri, 31 Jan 2020 11:45:58 +1100 Subject: [PATCH 1/3] fixed copy paste typo. Should be able to set header image now --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 393d021..46a1b56 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2136,7 +2136,7 @@ class Mastodon: # Load header, if specified if not header is None: - if header_mime_type is None and (isinstance(avatar, str) and os.path.isfile(header)): + if header_mime_type is None and (isinstance(header, str) and os.path.isfile(header)): header_mime_type = guess_type(header) header = open(header, 'rb') From 37a180126e3ddd51d3c0c3803c3f506b121df75a Mon Sep 17 00:00:00 2001 From: Gareth Dunstone Date: Fri, 31 Jan 2020 15:27:04 +1100 Subject: [PATCH 2/3] added the bot param --- mastodon/Mastodon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 46a1b56..f28b164 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2107,7 +2107,7 @@ class Mastodon: def account_update_credentials(self, display_name=None, note=None, avatar=None, avatar_mime_type=None, header=None, header_mime_type=None, - locked=None, fields=None): + locked=None, bot=None, fields=None): """ Update the profile for the currently logged-in user. @@ -2118,6 +2118,8 @@ class Mastodon: 'locked' specifies whether the user needs to manually approve follow requests. + 'bot' specifies whether the user should be set to a bot. + 'fields' can be a list of up to four name-value pairs (specified as tuples) to appear as semi-structured information in the users profile. From ecfbd0ae235671f346d27dd292135d76a24e2582 Mon Sep 17 00:00:00 2001 From: Gareth Dunstone Date: Fri, 31 Jan 2020 17:02:10 +1100 Subject: [PATCH 3/3] added other parameters to account_update_credentials --- mastodon/Mastodon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index f28b164..0d1750f 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2107,7 +2107,8 @@ class Mastodon: def account_update_credentials(self, display_name=None, note=None, avatar=None, avatar_mime_type=None, header=None, header_mime_type=None, - locked=None, bot=None, fields=None): + locked=None, bot=None, + discoverable=None, fields=None): """ Update the profile for the currently logged-in user.