Don't error on unknown notification types

This commit is contained in:
Andrew Godwin 2022-12-31 10:34:51 -07:00
parent d8ff43dc28
commit 8d6f78e29e

View file

@ -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(