mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +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:
commit
7fd31aaf8e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user