aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index a1416c5..93407e6 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -489,7 +489,7 @@ class Mastodon:
489 params_initial = locals() 489 params_initial = locals()
490 490
491 # Validate visibility parameter 491 # Validate visibility parameter
492 valid_visibilities = ['private', 'public', 'unlisted', ''] 492 valid_visibilities = ['private', 'public', 'unlisted', 'direct', '']
493 if params_initial['visibility'].lower() not in valid_visibilities: 493 if params_initial['visibility'].lower() not in valid_visibilities:
494 raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities) 494 raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities)
495 495
Powered by cgit v1.2.3 (git 2.41.0)