Update NoteCreateService.ts

This commit is contained in:
syuilo 2023-10-02 10:45:48 +09:00
parent cb821d42a6
commit 0db117b0ab
1 changed files with 2 additions and 0 deletions

View File

@ -496,11 +496,13 @@ export class NoteCreateService implements OnApplicationShutdown {
}
if (data.reply == null) {
// TODO: キャッシュ
this.followingsRepository.findBy({
followeeId: user.id,
notify: 'normal',
}).then(followings => {
for (const following of followings) {
// TODO: ワードミュート考慮
this.notificationService.createNotification(following.followerId, 'note', {
noteId: note.id,
}, user.id);