diff options
author | Eliot Berriot <[email protected]> | 2017-04-24 22:02:26 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-04-24 22:02:26 +0200 |
commit | d8adb28cdefdf42022984048f7bafa062d8d71ee (patch) | |
tree | 0bccc75da9044211aa380d3cb03f80dedc062120 /mastodon | |
parent | 49872d849d5ff983a6d4b2c207dd480e621bc846 (diff) | |
download | mastodon.py-d8adb28cdefdf42022984048f7bafa062d8d71ee.tar.gz |
Added direct level for status privacy
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 2 |
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 | ||