aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 17:46:23 +0200
committerLorenz Diener <[email protected]>2018-05-06 17:46:23 +0200
commitd633df28f756a14a19a4ff1a4f6a4b8600d1b3b8 (patch)
treeec0e98e33380285eed91b7caff9cc5c5c7d5f54d
parent65cca262974f1e76eda503a8f73d6b4060a608dd (diff)
downloadmastodon.py-d633df28f756a14a19a4ff1a4f6a4b8600d1b3b8.tar.gz
Add only_media parameter to timelines
-rw-r--r--mastodon/Mastodon.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 2e620ba..beccf92 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -400,6 +400,8 @@ class Mastodon:
400 400
401 The default timeline is the "home" timeline. 401 The default timeline is the "home" timeline.
402 402
403 Media only queries are supported via the `timeline_public()`_ and `timeline_hashtag()`_ functions.
404
403 Returns a list of `toot dicts`_. 405 Returns a list of `toot dicts`_.
404 """ 406 """
405 if max_id != None: 407 if max_id != None:
@@ -439,7 +441,7 @@ class Mastodon:
439 limit=limit) 441 limit=limit)
440 442
441 @api_version("1.0.0", "2.0.0") 443 @api_version("1.0.0", "2.0.0")
442 def timeline_public(self, max_id=None, since_id=None, limit=None): 444 def timeline_public(self, max_id=None, since_id=None, limit=None, only_media=False):
443 """ 445 """
444 Fetches the public / visible-network timeline, not including replies. 446 Fetches the public / visible-network timeline, not including replies.
445 447
@@ -449,7 +451,7 @@ class Mastodon:
449 limit=limit) 451 limit=limit)
450 452
451 @api_version("1.0.0", "2.0.0") 453 @api_version("1.0.0", "2.0.0")
452 def timeline_hashtag(self, hashtag, local=False, max_id=None, since_id=None, limit=None): 454 def timeline_hashtag(self, hashtag, local=False, max_id=None, since_id=None, limit=None, only_media=False):
453 """ 455 """
454 Fetch a timeline of toots with a given hashtag. The hashtag parameter 456 Fetch a timeline of toots with a given hashtag. The hashtag parameter
455 should not contain the leading #. 457 should not contain the leading #.
Powered by cgit v1.2.3 (git 2.41.0)