Skip to content

Commit

Permalink
check for dsa enabled when sending rejection notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Mar 22, 2024
1 parent 5a76418 commit f2cf1be
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 f2cf1be

Please sign in to comment.