Merge pull request #44 from EliotBerriot/master
Added direct level for status privacy
This commit is contained in:
commit
6f48c15431
S'han modificat 1 arxius amb 1 adicions i 1 eliminacions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Referencia en una nova incidència