From ef72710399a61b063767c0ad802d81320e32386b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 8 Jan 2026 17:39:53 -0600 Subject: [PATCH] Status reports should only go to bsky --- src/components/moderation/ReportDialog/const.ts | 9 +++++++++ src/components/moderation/ReportDialog/index.tsx | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/moderation/ReportDialog/const.ts b/src/components/moderation/ReportDialog/const.ts index 14ff397955..7e5075cce2 100644 --- a/src/components/moderation/ReportDialog/const.ts +++ b/src/components/moderation/ReportDialog/const.ts @@ -3,6 +3,8 @@ import { ToolsOzoneReportDefs as OzoneReportDefs, } from '@atproto/api' +import {type ParsedReportSubject} from '#/components/moderation/ReportDialog/types' + export const DMCA_LINK = 'https://bsky.social/about/support/copyright' export const SUPPORT_PAGE = 'https://bsky.social/about/support' @@ -112,3 +114,10 @@ export const BSKY_LABELER_ONLY_REPORT_REASONS: Set = OzoneReportDefs.REASONCHILDSAFETYOTHER, OzoneReportDefs.REASONVIOLENCEEXTREMISTCONTENT, ]) + +/** + * Set of _parsed_ subject types that should only be sent to Bluesky's + * moderation service. + */ +export const BSKY_LABELER_ONLY_SUBJECT_TYPES: Set = + new Set(['convoMessage', 'status']) diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx index f4cea4856a..8ee55095fd 100644 --- a/src/components/moderation/ReportDialog/index.tsx +++ b/src/components/moderation/ReportDialog/index.tsx @@ -32,6 +32,7 @@ import {Text} from '#/components/Typography' import {useSubmitReportMutation} from './action' import { BSKY_LABELER_ONLY_REPORT_REASONS, + BSKY_LABELER_ONLY_SUBJECT_TYPES, NEW_TO_OLD_REASONS_MAP, SUPPORT_PAGE, } from './const' @@ -127,8 +128,10 @@ function Inner(props: ReportDialogProps) { const isBskyOnlyReason = state?.selectedOption?.reason ? BSKY_LABELER_ONLY_REPORT_REASONS.has(state.selectedOption.reason) : false - // some subjects (chats) only go to Bluesky - const isBskyOnlySubject = props.subject.type === 'convoMessage' + // some subjects ONLY go to Bluesky + const isBskyOnlySubject = BSKY_LABELER_ONLY_SUBJECT_TYPES.has( + props.subject.type, + ) /** * Labelers that support this `subject` and its NSID collection