mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 07:55:14 +00:00
add notes
This commit is contained in:
parent
32149f5122
commit
8a0201fe9c
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,7 @@ export class NotificationService implements OnApplicationShutdown {
|
||||||
|
|
||||||
const profile = await this.userProfilesRepository.findOneBy({ userId: notifieeId });
|
const profile = await this.userProfilesRepository.findOneBy({ userId: notifieeId });
|
||||||
|
|
||||||
|
// TODO: Cache
|
||||||
const isMuted = profile?.mutingNotificationTypes.includes(type);
|
const isMuted = profile?.mutingNotificationTypes.includes(type);
|
||||||
|
|
||||||
// Create notification
|
// Create notification
|
||||||
|
@ -122,6 +123,7 @@ export class NotificationService implements OnApplicationShutdown {
|
||||||
if (fresh.isRead) return;
|
if (fresh.isRead) return;
|
||||||
|
|
||||||
//#region ただしミュートしているユーザーからの通知なら無視
|
//#region ただしミュートしているユーザーからの通知なら無視
|
||||||
|
// TODO: Cache
|
||||||
const mutings = await this.mutingsRepository.findBy({
|
const mutings = await this.mutingsRepository.findBy({
|
||||||
muterId: notifieeId,
|
muterId: notifieeId,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue