From 7a9dbd4b5b943b40c345da9aa6347c9d7c46626d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 15 Oct 2025 16:18:32 -0500 Subject: [PATCH] Clarify handling --- src/components/moderation/ReportDialog/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx index f305a30afe..06920619f5 100644 --- a/src/components/moderation/ReportDialog/index.tsx +++ b/src/components/moderation/ReportDialog/index.tsx @@ -143,11 +143,13 @@ function Inner(props: ReportDialogProps) { if (BSKY_LABELER_ONLY_REPORT_REASONS.has(state.selectedOption.reason)) { return l.creator.did === BSKY_LABELER_DID } - const reasonTypes: string[] | undefined = l.reasonTypes - if (reasonTypes === undefined) return true + const supportedReasonTypes: string[] | undefined = l.reasonTypes + if (supportedReasonTypes === undefined) return true return ( - reasonTypes.includes(state.selectedOption.reason) || - reasonTypes.includes( + // supports new reason type + supportedReasonTypes.includes(state.selectedOption.reason) || + // supports old reason type (backwards compat) + supportedReasonTypes.includes( NEW_TO_OLD_REASONS_MAP[state.selectedOption.reason], ) )