diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 6 |
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 #. |