diff --git a/server/src/core/server/services/comments/pipeline/phases/external.ts b/server/src/core/server/services/comments/pipeline/phases/external.ts index 0b0cfb840c..57f91e221c 100644 --- a/server/src/core/server/services/comments/pipeline/phases/external.ts +++ b/server/src/core/server/services/comments/pipeline/phases/external.ts @@ -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)