aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Berriot <[email protected]>2017-04-24 22:02:26 +0200
committerGitHub <[email protected]>2017-04-24 22:02:26 +0200
commitd8adb28cdefdf42022984048f7bafa062d8d71ee (patch)
tree0bccc75da9044211aa380d3cb03f80dedc062120
parent49872d849d5ff983a6d4b2c207dd480e621bc846 (diff)
downloadmastodon.py-d8adb28cdefdf42022984048f7bafa062d8d71ee.tar.gz
Added direct level for status privacy
-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)