Skip to content

Commit

Permalink
Merge pull request #4584 from coralproject/fix/notifications-rejected…
Browse files Browse the repository at this point in the history
…-dsa

fix: check for dsa enabled when sending rejection notifications
  • Loading branch information
tessalt authored Mar 25, 2024
2 parents 5a76418 + f2cf1be commit eabbc18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/core/server/stacks/rejectComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ const rejectComment = async (

if (
sendNotification &&
!(reason?.code === GQLREJECTION_REASON_CODE.BANNED_WORD)
!(reason?.code === GQLREJECTION_REASON_CODE.BANNED_WORD) &&
tenant.dsa?.enabled
) {
await notifications.create(tenant.id, tenant.locale, {
targetUserID: result.after.authorID!,
Expand Down

0 comments on commit eabbc18

Please sign in to comment.