From cb29500852e14f8213bd8fb156808b98699f4cca Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Thu, 14 Dec 2023 16:43:36 +0100 Subject: [PATCH] :sparkles: Allow querying subjects by appealed status --- packages/bsky/src/api/com/atproto/moderation/util.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/bsky/src/api/com/atproto/moderation/util.ts b/packages/bsky/src/api/com/atproto/moderation/util.ts index bc0ece2ff9f..2d11376cb4c 100644 --- a/packages/bsky/src/api/com/atproto/moderation/util.ts +++ b/packages/bsky/src/api/com/atproto/moderation/util.ts @@ -15,6 +15,7 @@ import { REVIEWCLOSED, REVIEWESCALATED, REVIEWOPEN, + REVIEWAPPEALED, } from '../../../../lexicon/types/com/atproto/admin/defs' import { ModerationEvent } from '../../../../db/tables/moderation' import { ModerationSubjectStatusRow } from '../../../../services/moderation/types' @@ -64,7 +65,12 @@ export const getReviewState = (reviewState?: string) => { throw new InvalidRequestError('Invalid review state') } -const reviewStates = new Set([REVIEWCLOSED, REVIEWESCALATED, REVIEWOPEN]) +const reviewStates = new Set([ + REVIEWCLOSED, + REVIEWESCALATED, + REVIEWOPEN, + REVIEWAPPEALED, +]) const reasonTypes = new Set([ REASONOTHER,