1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

merge #5516: [mastodon] send canonical 'true'/'false' boolean values

instead of '1'/'0' to be compatible with Mitra instances or others that
do not fully implement Mastodon's boolean value semantics.
This commit is contained in:
Mike Fährmann 2024-04-27 01:34:56 +02:00
commit 7fd31aaf8e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -227,8 +227,8 @@ class MastodonAPI():
exclude_replies=False):
"""Fetch an account's statuses"""
endpoint = "/v1/accounts/{}/statuses".format(account_id)
params = {"only_media" : "1" if only_media else "0",
"exclude_replies": "1" if exclude_replies else "0"}
params = {"only_media" : "true" if only_media else "false",
"exclude_replies": "true" if exclude_replies else "false"}
return self._pagination(endpoint, params)
def status(self, status_id):