Merge pull request #44 from EliotBerriot/master

Added direct level for status privacy
This commit is contained in:
Lorenz Diener 2017-04-25 11:34:58 +02:00 cometido por GitHub
commit 6f48c15431

Veure arxiu

@ -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)