Fix account_statuses breakage
This commit is contained in:
pare
3397939c6f
commit
16564c42b8
S'han modificat 1 arxius amb 10 adicions i 2 eliminacions
|
@ -563,7 +563,8 @@ class Mastodon:
|
||||||
included.
|
included.
|
||||||
|
|
||||||
If `only_media` is set, return only statuses with media attachments.
|
If `only_media` is set, return only statuses with media attachments.
|
||||||
If `pinned` is set, return only statuses that have been pinned.
|
If `pinned` is set, return only statuses that have been pinned. Note that
|
||||||
|
as of Mastodon 2.1.0, this only works properly for instance-local users.
|
||||||
If `exclude_replies` is set, filter out all statuses that are replies.
|
If `exclude_replies` is set, filter out all statuses that are replies.
|
||||||
|
|
||||||
Returns a list of `toot dicts`_.
|
Returns a list of `toot dicts`_.
|
||||||
|
@ -576,6 +577,13 @@ class Mastodon:
|
||||||
since_id = self.__unpack_id(since_id)
|
since_id = self.__unpack_id(since_id)
|
||||||
|
|
||||||
params = self.__generate_params(locals(), ['id'])
|
params = self.__generate_params(locals(), ['id'])
|
||||||
|
if pinned == False:
|
||||||
|
del params["pinned"]
|
||||||
|
if only_media == False:
|
||||||
|
del params["only_media"]
|
||||||
|
if exclude_replies == False:
|
||||||
|
del params["exclude_replies"]
|
||||||
|
|
||||||
url = '/api/v1/accounts/{0}/statuses'.format(str(id))
|
url = '/api/v1/accounts/{0}/statuses'.format(str(id))
|
||||||
return self.__api_request('GET', url, params)
|
return self.__api_request('GET', url, params)
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència