From 0cac499cfe5c64e577c240afa0380b61502ae5e1 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 5 Apr 2017 13:54:21 +0200 Subject: Sensitive = False results in Not Sensitive. Fixes #20 --- mastodon/Mastodon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 9d8b173..9967bdb 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -411,6 +411,9 @@ class Mastodon: if params_initial['visibility'].lower() not in valid_visibilities: raise ValueError('Invalid visibility value! Acceptable values are %s' % valid_visibilities) + if params_initial['sensitive'] == False: + del[params_initial['sensitive']] + if media_ids != None: try: media_ids_proper = [] -- cgit v1.2.3