From 0471456e67d4abd8c3ec7a5275556187ebfdd9a7 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 23 Jan 2023 13:21:50 +0100 Subject: [PATCH] Fix missing filtering on some notification types (#23211) * Fix missing warning-type filtering on some notification types * Fix missing hide-type filtering on some notification types --- .../notifications/components/notification.js | 21 ++++++++++++++++--- .../containers/notification_container.js | 2 +- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/notifications/components/notification.js b/app/javascript/mastodon/features/notifications/components/notification.js index ea2c9c0a42eb76..746d085c6ec90a 100644 --- a/app/javascript/mastodon/features/notifications/components/notification.js +++ b/app/javascript/mastodon/features/notifications/components/notification.js @@ -246,7 +246,11 @@ class Notification extends ImmutablePureComponent { } renderStatus (notification, link) { - const { intl, unread } = this.props; + const { intl, unread, status } = this.props; + + if (!status) { + return null; + } return ( @@ -264,6 +268,7 @@ class Notification extends ImmutablePureComponent {