aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-12-14 11:17:18 +0100
committerLorenz Diener <[email protected]>2017-12-14 11:17:18 +0100
commit16564c42b8a01cb60b3ef3c73ea71d09ab0fcadc (patch)
treecb895a834b46a0649eee08254477346ae3ab18b0
parent3397939c6f0b67444cd6388fd70705411c40b6c7 (diff)
downloadmastodon.py-16564c42b8a01cb60b3ef3c73ea71d09ab0fcadc.tar.gz
Fix account_statuses breakage
-rw-r--r--mastodon/Mastodon.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 8aad946..9c97b79 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -563,7 +563,8 @@ class Mastodon:
563 included. 563 included.
564 564
565 If `only_media` is set, return only statuses with media attachments. 565 If `only_media` is set, return only statuses with media attachments.
566 If `pinned` is set, return only statuses that have been pinned. 566 If `pinned` is set, return only statuses that have been pinned. Note that
567 as of Mastodon 2.1.0, this only works properly for instance-local users.
567 If `exclude_replies` is set, filter out all statuses that are replies. 568 If `exclude_replies` is set, filter out all statuses that are replies.
568 569
569 Returns a list of `toot dicts`_. 570 Returns a list of `toot dicts`_.
@@ -574,8 +575,15 @@ class Mastodon:
574 575
575 if since_id != None: 576 if since_id != None:
576 since_id = self.__unpack_id(since_id) 577 since_id = self.__unpack_id(since_id)
577 578
578 params = self.__generate_params(locals(), ['id']) 579 params = self.__generate_params(locals(), ['id'])
580 if pinned == False:
581 del params["pinned"]
582 if only_media == False:
583 del params["only_media"]
584 if exclude_replies == False:
585 del params["exclude_replies"]
586
579 url = '/api/v1/accounts/{0}/statuses'.format(str(id)) 587 url = '/api/v1/accounts/{0}/statuses'.format(str(id))
580 return self.__api_request('GET', url, params) 588 return self.__api_request('GET', url, params)
581 589
Powered by cgit v1.2.3 (git 2.41.0)