diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-03 20:14:19 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-03 20:14:19 +0900 |
| commit | 8a0201fe9c17be0a2402d1f4f1b99cf056e2303c (patch) | |
| tree | d84d39a451023dcdcedee56d8b6f6ea568be54f5 /packages/backend/src | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-8a0201fe9c17be0a2402d1f4f1b99cf056e2303c.tar.gz misskey-8a0201fe9c17be0a2402d1f4f1b99cf056e2303c.tar.bz2 misskey-8a0201fe9c17be0a2402d1f4f1b99cf056e2303c.zip | |
add notes
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/core/NotificationService.ts | 2 |
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, }); |