aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 874d925..8b7064f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -929,7 +929,8 @@ class Mastodon:
929 929
930 # Validate visibility parameter 930 # Validate visibility parameter
931 valid_visibilities = ['private', 'public', 'unlisted', 'direct', ''] 931 valid_visibilities = ['private', 'public', 'unlisted', 'direct', '']
932 if params_initial['visibility'].lower() not in valid_visibilities: 932 params_initial['visibility'] = params_initial['visibility'].lower()
933 if params_initial['visibility'] not in valid_visibilities:
933 raise ValueError('Invalid visibility value! Acceptable ' 934 raise ValueError('Invalid visibility value! Acceptable '
934 'values are %s' % valid_visibilities) 935 'values are %s' % valid_visibilities)
935 936
Powered by cgit v1.2.3 (git 2.41.0)