From 86bb428e6f7621162e476d207ebd3cb3462d2a98 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 16 Feb 2020 17:03:06 +0100 Subject: [PATCH] Add "mentions_only" parameter to notifications --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 5b1f98b..8c3f8fb 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -960,7 +960,7 @@ class Mastodon: # Reading data: Notifications ### @api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION) - def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None): + def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, mentions_only=None): """ Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in user. Pass `account_id` to get only notifications originating from the given account.