From 8d6f78e29e3c3312863f133d6a5c2b778199d7d0 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 31 Dec 2022 10:34:51 -0700 Subject: [PATCH] Don't error on unknown notification types --- api/views/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views/notifications.py b/api/views/notifications.py index 1d31e40..00d4eff 100644 --- a/api/views/notifications.py +++ b/api/views/notifications.py @@ -33,7 +33,7 @@ def notifications( requested_types.difference_update(excluded_types) # Use that to pull relevant events queryset = TimelineService(request.identity).notifications( - [base_types[r] for r in requested_types] + [base_types[r] for r in requested_types if r in base_types] ) paginator = MastodonPaginator(TimelineEvent) pager = paginator.paginate(