Merge pull request #32 from tootworks/remove_mentions_timeline

Remove the mentions timeline because it doesn't exist
This commit is contained in:
Lorenz Diener 2017-04-19 09:53:43 +02:00 cometido por GitHub
commit 2dfa8d3a37
S'han modificat 2 arxius amb 2 adicions i 11 eliminacions

Veure arxiu

@ -208,7 +208,6 @@ user could see, as well as hashtag timelines and the public timeline.
.. automethod:: Mastodon.timeline .. automethod:: Mastodon.timeline
.. automethod:: Mastodon.timeline_home .. automethod:: Mastodon.timeline_home
.. automethod:: Mastodon.timeline_mentions
.. automethod:: Mastodon.timeline_local .. automethod:: Mastodon.timeline_local
.. automethod:: Mastodon.timeline_public .. automethod:: Mastodon.timeline_public
.. automethod:: Mastodon.timeline_hashtag .. automethod:: Mastodon.timeline_hashtag

Veure arxiu

@ -244,8 +244,8 @@ class Mastodon:
## ##
def timeline(self, timeline = "home", max_id = None, since_id = None, limit = None): def timeline(self, timeline = "home", max_id = None, since_id = None, limit = None):
""" """
Fetch statuses, most recent ones first. Timeline can be home, mentions, local, Fetch statuses, most recent ones first. Timeline can be home, local, public,
public, or tag/hashtag. See the following functions documentation for what those do. or tag/hashtag. See the following functions documentation for what those do.
The default timeline is the "home" timeline. The default timeline is the "home" timeline.
@ -268,14 +268,6 @@ class Mastodon:
""" """
return self.timeline('home', max_id = max_id, since_id = since_id, limit = limit) return self.timeline('home', max_id = max_id, since_id = since_id, limit = limit)
def timeline_mentions(self, max_id = None, since_id = None, limit = None):
"""
Fetches the authenticated users mentions.
Returns a list of toot dicts.
"""
return self.timeline('mentions', max_id = max_id, since_id = since_id, limit = limit)
def timeline_local(self, max_id = None, since_id = None, limit = None): def timeline_local(self, max_id = None, since_id = None, limit = None):
""" """
Fetches the local / instance-wide timeline. Fetches the local / instance-wide timeline.