Skip to content
Snippets Groups Projects
Commit 8a0201fe authored by syuilo's avatar syuilo
Browse files

add notes

parent 32149f51
No related branches found
No related tags found
No related merge requests found
......@@ -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,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment