1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Fix all media marked as sensitive

Needed to use "true" and "false" strings instead of bools.
This commit is contained in:
Ivan Habunek 2018-06-27 15:30:56 +02:00
parent acfe686c09
commit 05086e0c1f
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 2 additions and 1 deletions

View File

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

View File

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