diff --git a/packages/server/src/notification/notification.ts b/packages/server/src/notification/notification.ts index 35fb4853e2..91fb2a2949 100644 --- a/packages/server/src/notification/notification.ts +++ b/packages/server/src/notification/notification.ts @@ -163,6 +163,9 @@ async function notifyReaction ( const messageAccount = await findAccount(ctx, message.creator) if (messageAccount == null) return result + const spaceMembers = await ctx.db.getCardSpaceMembers(cardId) + if (!spaceMembers.includes(messageAccount)) return [] + const reactionAccount = await findAccount(ctx, socialId) if (reactionAccount === messageAccount) return result