summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/api/stream/channels/main.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/stream/channels/main.ts b/src/server/api/stream/channels/main.ts
index a6c5b12760..fd0984c833 100644
--- a/src/server/api/stream/channels/main.ts
+++ b/src/server/api/stream/channels/main.ts
@@ -14,12 +14,12 @@ export default class extends Channel {
switch (type) {
case 'notification': {
- if (!mutedUserIds.includes(body.userId)) {
- this.send('notification', body);
- }
+ if (mutedUserIds.includes(body.userId)) return;
break;
}
}
+
+ this.send(type, body);
});
}
}