fix: 投稿通知がオンでもダイレクト投稿はユーザーに通知されないように

This commit is contained in:
GrapeApple0 2023-11-06 06:35:18 +00:00
parent bfca457510
commit 3557302182
1 changed files with 7 additions and 5 deletions

View File

@ -521,11 +521,13 @@ export class NoteCreateService implements OnApplicationShutdown {
followeeId: user.id,
notify: 'normal',
}).then(followings => {
for (const following of followings) {
// TODO: ワードミュート考慮
this.notificationService.createNotification(following.followerId, 'note', {
noteId: note.id,
}, user.id);
if (note.visibility !== 'specified') {
for (const following of followings) {
// TODO: ワードミュート考慮
this.notificationService.createNotification(following.followerId, 'note', {
noteId: note.id,
}, user.id);
}
}
});
}