diff --git a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts index 8adf16294c..eafb1695ba 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts @@ -110,7 +110,7 @@ export default class extends Endpoint { // eslint- notifications = notifications.filter(notification => !excludeTypes.includes(notification.type)); } - //#region Check muting + //#region Check muting & suspended const [ userIdsWhoMeMuting, @@ -128,10 +128,12 @@ export default class extends Endpoint { // eslint- if (notifier === null) return null; if (notifier.host && userMutedInstances.has(notifier.host)) return null; + if (notifier.isSuspended) return null; + return notification; }))).filter((notification): notification is MiNotification => notification !== null); - //#endregion Check muting + //#endregion Check muting & suspended if (notifications.length === 0) { return []; diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 0ae8b89d2f..3a2bc819f9 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -108,7 +108,7 @@ export default class extends Endpoint { // eslint- notifications = notifications.filter(notification => !excludeTypes.includes(notification.type)); } - //#region Check muting + //#region Check muting & suspended const [ userIdsWhoMeMuting, @@ -126,10 +126,12 @@ export default class extends Endpoint { // eslint- if (notifier === null) return null; if (notifier.host && userMutedInstances.has(notifier.host)) return null; + if (notifier.isSuspended) return null; + return notification; }))).filter((notification): notification is MiNotification => notification !== null); - //#endregion Check muting + //#endregion Check muting & suspended if (notifications.length === 0) { return [];