diff options
author | Christopher Su <[email protected]> | 2017-04-15 00:53:58 -0700 |
---|---|---|
committer | Christopher Su <[email protected]> | 2017-04-15 00:53:58 -0700 |
commit | 8f0d872119cfe25664fbad868808715012c464b5 (patch) | |
tree | 1415c4f03b93f7a385aa20e5be0e7cb44cca1bbf | |
parent | cd2165131a3dcc1d044dbaefde1cfcd1c5b78dcf (diff) | |
download | mastodon.py-8f0d872119cfe25664fbad868808715012c464b5.tar.gz |
Remove the mentions timeline because it doesn't exist
-rw-r--r-- | docs/index.rst | 1 | ||||
-rw-r--r-- | mastodon/Mastodon.py | 12 |
2 files changed, 2 insertions, 11 deletions
diff --git a/docs/index.rst b/docs/index.rst index 6279d48..df85c17 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -208,7 +208,6 @@ user could see, as well as hashtag timelines and the public timeline. | |||
208 | 208 | ||
209 | .. automethod:: Mastodon.timeline | 209 | .. automethod:: Mastodon.timeline |
210 | .. automethod:: Mastodon.timeline_home | 210 | .. automethod:: Mastodon.timeline_home |
211 | .. automethod:: Mastodon.timeline_mentions | ||
212 | .. automethod:: Mastodon.timeline_local | 211 | .. automethod:: Mastodon.timeline_local |
213 | .. automethod:: Mastodon.timeline_public | 212 | .. automethod:: Mastodon.timeline_public |
214 | .. automethod:: Mastodon.timeline_hashtag | 213 | .. automethod:: Mastodon.timeline_hashtag |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index ef6cb1f..310dc68 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -244,8 +244,8 @@ class Mastodon: | |||
244 | ## | 244 | ## |
245 | def timeline(self, timeline = "home", max_id = None, since_id = None, limit = None): | 245 | def timeline(self, timeline = "home", max_id = None, since_id = None, limit = None): |
246 | """ | 246 | """ |
247 | Fetch statuses, most recent ones first. Timeline can be home, mentions, local, | 247 | Fetch statuses, most recent ones first. Timeline can be home, local, public, |
248 | public, or tag/hashtag. See the following functions documentation for what those do. | 248 | or tag/hashtag. See the following functions documentation for what those do. |
249 | 249 | ||
250 | The default timeline is the "home" timeline. | 250 | The default timeline is the "home" timeline. |
251 | 251 | ||
@@ -268,14 +268,6 @@ class Mastodon: | |||
268 | """ | 268 | """ |
269 | return self.timeline('home', max_id = max_id, since_id = since_id, limit = limit) | 269 | return self.timeline('home', max_id = max_id, since_id = since_id, limit = limit) |
270 | 270 | ||
271 | def timeline_mentions(self, max_id = None, since_id = None, limit = None): | ||
272 | """ | ||
273 | Fetches the authenticated users mentions. | ||
274 | |||
275 | Returns a list of toot dicts. | ||
276 | """ | ||
277 | return self.timeline('mentions', max_id = max_id, since_id = since_id, limit = limit) | ||
278 | |||
279 | def timeline_local(self, max_id = None, since_id = None, limit = None): | 271 | def timeline_local(self, max_id = None, since_id = None, limit = None): |
280 | """ | 272 | """ |
281 | Fetches the local / instance-wide timeline. | 273 | Fetches the local / instance-wide timeline. |