From 0b952aef124af09b6ea1267aac48bea6fc12f710 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 20:02:09 +0200 Subject: [PATCH] Implement "reason" for create_account --- mastodon/Mastodon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 2adee7e..47f76e1 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -546,12 +546,13 @@ class Mastodon: return response['access_token'] @api_version("2.7.0", "2.7.0", "2.7.0") - def create_account(self, username, password, email, agreement=False, locale="en", scopes=__DEFAULT_SCOPES, to_file=None): + def create_account(self, username, password, email, agreement=False, reason=None, locale="en", scopes=__DEFAULT_SCOPES, to_file=None): """ Creates a new user account with the given username, password and email. "agreement" must be set to true (after showing the user the instances user agreement and having them agree to it), "locale" specifies the language for the confirmation e-mail as an - ISO 639-1 (two-letter) language code. + ISO 639-1 (two-letter) language code. `reason` can be used to specify why a user + would like to join if approved-registrations mode is on. Does not require an access token, but does require a client grant.