aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-04-25 11:34:58 +0200
committerGitHub <[email protected]>2017-04-25 11:34:58 +0200
commit6f48c154310a5a154a051a793690d973617016c0 (patch)
tree0bccc75da9044211aa380d3cb03f80dedc062120
parent49872d849d5ff983a6d4b2c207dd480e621bc846 (diff)
parentd8adb28cdefdf42022984048f7bafa062d8d71ee (diff)
downloadmastodon.py-6f48c154310a5a154a051a793690d973617016c0.tar.gz
Merge pull request #44 from EliotBerriot/master
Added direct level for status privacy
-rw-r--r--mastodon/Mastodon.py2
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
Powered by cgit v1.2.3 (git 2.41.0)