forked from mirror/misskey
parent
2096caf91d
commit
f0c1c08314
@ -110,7 +110,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||
notifications = notifications.filter(notification => !excludeTypes.includes(notification.type));
|
||||
}
|
||||
|
||||
//#region Check muting & suspended
|
||||
//#region Check muting
|
||||
|
||||
const [
|
||||
userIdsWhoMeMuting,
|
||||
@ -128,12 +128,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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 & suspended
|
||||
//#endregion Check muting
|
||||
|
||||
if (notifications.length === 0) {
|
||||
return [];
|
||||
|
@ -108,7 +108,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||
notifications = notifications.filter(notification => !excludeTypes.includes(notification.type));
|
||||
}
|
||||
|
||||
//#region Check muting & suspended
|
||||
//#region Check muting
|
||||
|
||||
const [
|
||||
userIdsWhoMeMuting,
|
||||
@ -126,12 +126,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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 & suspended
|
||||
//#endregion Check muting
|
||||
|
||||
if (notifications.length === 0) {
|
||||
return [];
|
||||
|
Loading…
Reference in New Issue
Block a user