From d8adb28cdefdf42022984048f7bafa062d8d71ee Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 24 Apr 2017 22:02:26 +0200 Subject: [PATCH] Added direct level for status privacy --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: params_initial = locals() # Validate visibility parameter - valid_visibilities = ['private', 'public', 'unlisted', ''] + valid_visibilities = ['private', 'public', 'unlisted', 'direct', ''] if params_initial['visibility'].lower() not in valid_visibilities: raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities)