summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NotificationService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core/NotificationService.ts')
-rw-r--r--packages/backend/src/core/NotificationService.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts
index 48f2c65847..b984f3c77b 100644
--- a/packages/backend/src/core/NotificationService.ts
+++ b/packages/backend/src/core/NotificationService.ts
@@ -96,6 +96,7 @@ export class NotificationService implements OnApplicationShutdown {
const profile = await this.userProfilesRepository.findOneBy({ userId: notifieeId });
+ // TODO: Cache
const isMuted = profile?.mutingNotificationTypes.includes(type);
// Create notification
@@ -122,6 +123,7 @@ export class NotificationService implements OnApplicationShutdown {
if (fresh.isRead) return;
//#region ただしミュートしているユーザーからの通知なら無視
+ // TODO: Cache
const mutings = await this.mutingsRepository.findBy({
muterId: notifieeId,
});