aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFx <[email protected]>2020-09-01 12:24:19 +0200
committerFx <[email protected]>2020-09-01 12:24:19 +0200
commit539edfa8ee8587d05787fe32f1fe3c619fca8f6f (patch)
treed3ee4c0c5c44e02e2613419d9ef1d7e665245614 /mastodon
parente9d2c3d53f7b1d371e5dc5bf47e5fe335b698c85 (diff)
downloadmastodon.py-539edfa8ee8587d05787fe32f1fe3c619fca8f6f.tar.gz
Replaced `mentions_only` by `exclude_types` in `notifications` API #206
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 98ac72a..ab9ac1f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -965,10 +965,13 @@ class Mastodon:
965 # Reading data: Notifications 965 # Reading data: Notifications
966 ### 966 ###
967 @api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION) 967 @api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION)
968 def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, mentions_only=None): 968 def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, exclude_types=None):
969 """ 969 """
970 Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in 970 Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in
971 user. Pass `account_id` to get only notifications originating from the given account. 971 user. Pass `account_id` to get only notifications originating from the given account.
972
973 Parameter `exclude_types` is an array of the following `follow`, `favourite`, `reblog`,
974 `mention`, `poll`, `follow_request`
972 975
973 Can be passed an `id` to fetch a single notification. 976 Can be passed an `id` to fetch a single notification.
974 977
Powered by cgit v1.2.3 (git 2.41.0)