Added direct level for status privacy
This commit is contained in:
pare
49872d849d
commit
d8adb28cde
S'han modificat 1 arxius amb 1 adicions i 1 eliminacions
|
@ -489,7 +489,7 @@ class Mastodon:
|
||||||
params_initial = locals()
|
params_initial = locals()
|
||||||
|
|
||||||
# Validate visibility parameter
|
# Validate visibility parameter
|
||||||
valid_visibilities = ['private', 'public', 'unlisted', '']
|
valid_visibilities = ['private', 'public', 'unlisted', 'direct', '']
|
||||||
if params_initial['visibility'].lower() not in valid_visibilities:
|
if params_initial['visibility'].lower() not in valid_visibilities:
|
||||||
raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities)
|
raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities)
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència