aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAljoscha Rittner <[email protected]>2022-06-27 09:03:42 +0200
committerGitHub <[email protected]>2022-06-27 09:03:42 +0200
commitf8f988710c853525b20c2a02acc3ce9dd95d4167 (patch)
tree3019e7c0a644ee244055ed1174090ee1900a0846
parentcab72d04898ea23c361a5fe7cf72f2b0dbdfd9b8 (diff)
parent539edfa8ee8587d05787fe32f1fe3c619fca8f6f (diff)
downloadmastodon.py-f8f988710c853525b20c2a02acc3ce9dd95d4167.tar.gz
Merge pull request #219 from MicroCheapFx/206_notifications
Replaced `mentions_only` by `exclude_types` in `notifications` Fixes #206
-rw-r--r--mastodon/Mastodon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 64450b6..3851fbf 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -982,10 +982,13 @@ class Mastodon:
982 # Reading data: Notifications 982 # Reading data: Notifications
983 ### 983 ###
984 @api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION) 984 @api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION)
985 def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, mentions_only=None): 985 def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, exclude_types=None):
986 """ 986 """
987 Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in 987 Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in
988 user. Pass `account_id` to get only notifications originating from the given account. 988 user. Pass `account_id` to get only notifications originating from the given account.
989
990 Parameter `exclude_types` is an array of the following `follow`, `favourite`, `reblog`,
991 `mention`, `poll`, `follow_request`
989 992
990 Can be passed an `id` to fetch a single notification. 993 Can be passed an `id` to fetch a single notification.
991 994
Powered by cgit v1.2.3 (git 2.41.0)