diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index 88c59aeafb..2cb31d3fb3 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -96,7 +96,7 @@ router.post( if (commentId) { const comment = await Comment.findByPk(commentId as string); - if (!comment) { + if (!comment || comment.documentId !== doc.id) { continue; }