Fix all media marked as sensitive

Needed to use "true" and "false" strings instead of bools.
pull/70/head
Ivan Habunek 2018-06-27 15:30:56 +02:00
rodzic acfe686c09
commit 05086e0c1f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -10,6 +10,7 @@ Changelog
console. This makes it clear what's the preferred option.
* Use Idempotency-Key header to prevent multiple toots being posted if request
is retried
* Fix a bug where all media would be marked as sensitive
**0.18.0 (2018-06-12)**

Wyświetl plik

@ -100,7 +100,7 @@ def post_status(
'status': status,
'media_ids[]': media_ids,
'visibility': visibility,
'sensitive': sensitive,
'sensitive': "true" if sensitive else "false",
'spoiler_text': spoiler_text,
'in_reply_to_id': in_reply_to_id,
}, headers=headers).json()