Skip to content

Commit

Permalink
fix:ノートインポート時に通知を送信しないように (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarikanaru authored Jan 17, 2025
1 parent c66b892 commit 3ad39fb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,21 +940,6 @@ export class NoteCreateService implements OnApplicationShutdown {
this.saveReply(data.reply, note);
}

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);
}
});
}

if (data.renote && data.text == null && data.renote.userId !== user.id && !user.isBot) {
this.incRenoteCount(data.renote);
}
Expand Down

0 comments on commit 3ad39fb

Please sign in to comment.