Merge pull request #219 from MicroCheapFx/206_notifications
Replaced `mentions_only` by `exclude_types` in `notifications` Fixes #206
This commit is contained in:
commit
f8f988710c
S'han modificat 1 arxius amb 4 adicions i 1 eliminacions
|
@ -982,11 +982,14 @@ class Mastodon:
|
||||||
# Reading data: Notifications
|
# Reading data: Notifications
|
||||||
###
|
###
|
||||||
@api_version("1.0.0", "2.9.0", __DICT_VERSION_NOTIFICATION)
|
@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, mentions_only=None):
|
def notifications(self, id=None, account_id=None, max_id=None, min_id=None, since_id=None, limit=None, exclude_types=None):
|
||||||
"""
|
"""
|
||||||
Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in
|
Fetch notifications (mentions, favourites, reblogs, follows) for the logged-in
|
||||||
user. Pass `account_id` to get only notifications originating from the given account.
|
user. Pass `account_id` to get only notifications originating from the given account.
|
||||||
|
|
||||||
|
Parameter `exclude_types` is an array of the following `follow`, `favourite`, `reblog`,
|
||||||
|
`mention`, `poll`, `follow_request`
|
||||||
|
|
||||||
Can be passed an `id` to fetch a single notification.
|
Can be passed an `id` to fetch a single notification.
|
||||||
|
|
||||||
Returns a list of `notification dicts`_.
|
Returns a list of `notification dicts`_.
|
||||||
|
|
Loading…
Referencia en una nova incidència