Skip to content

Commit

Permalink
Merge pull request #4674 from rigperro/develop
Browse files Browse the repository at this point in the history
Add a safety check for tenant.dsa in external phase
  • Loading branch information
tessalt authored Oct 3, 2024
2 parents 44ca0a7 + b059364 commit 5bafac1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export const external: IntermediateModerationPhase = async (ctx) => {

let missingReason: boolean | undefined;
if (
ctx.tenant.dsa.enabled &&
ctx.tenant.dsa?.enabled &&
response.moderationAction &&
(!response.moderationAction.rejectionReason ||
!response.moderationAction.rejectionReason.code)
Expand Down

0 comments on commit 5bafac1

Please sign in to comment.