diff options
-rw-r--r-- | docs/index.rst | 5 | ||||
-rw-r--r-- | mastodon/Mastodon.py | 16 |
2 files changed, 0 insertions, 21 deletions
diff --git a/docs/index.rst b/docs/index.rst index 5226055..2b5ccf1 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -772,11 +772,6 @@ Reading data: Searching | |||
772 | .. automethod:: Mastodon.search | 772 | .. automethod:: Mastodon.search |
773 | .. automethod:: Mastodon.search_v2 | 773 | .. automethod:: Mastodon.search_v2 |
774 | 774 | ||
775 | Reading data: Trends | ||
776 | -------------------- | ||
777 | |||
778 | .. automethod:: Mastodon.trends | ||
779 | |||
780 | Reading data: Mutes and blocks | 775 | Reading data: Mutes and blocks |
781 | ------------------------------ | 776 | ------------------------------ |
782 | These functions allow you to get information about accounts that are | 777 | These functions allow you to get information about accounts that are |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index e8b900f..e6698f8 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -951,22 +951,6 @@ class Mastodon: | |||
951 | return self.__api_request('GET', '/api/v2/search', params) | 951 | return self.__api_request('GET', '/api/v2/search', params) |
952 | 952 | ||
953 | ### | 953 | ### |
954 | # Reading data: Trends | ||
955 | ### | ||
956 | @api_version("2.4.3", "2.4.3", __DICT_VERSION_HASHTAG) | ||
957 | def trends(self): | ||
958 | """ | ||
959 | Fetch trending-hashtag information, if the instance provides such information. | ||
960 | |||
961 | Does not require authentication. | ||
962 | |||
963 | Returns a list of `hashtag dicts`_, sorted by the instances trending algorithm, | ||
964 | descending. | ||
965 | |||
966 | """ | ||
967 | return self.__api_request('GET', '/api/v1/trends') | ||
968 | |||
969 | ### | ||
970 | # Reading data: Lists | 954 | # Reading data: Lists |
971 | ### | 955 | ### |
972 | @api_version("2.1.0", "2.1.0", __DICT_VERSION_LIST) | 956 | @api_version("2.1.0", "2.1.0", __DICT_VERSION_LIST) |