move the bluesky labeler did to the sdk api constant

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-04 03:57:18 +03:00
parent 2f482f2c0b
commit 541a82c2dd
6 changed files with 14 additions and 12 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import {BSKY_LABELER_DID} from '@atproto/api'
import {type Client} from '@atproto/lex'
import {type DidString} from '@atproto/syntax'
import {api} from '@bsky.app/sdk'
import {IS_TEST_USER} from '#/lib/constants'
import {com} from '#/lexicons'
@@ -53,7 +53,7 @@ export function applyLabelersToClient(
subscribedDids: string[],
) {
client.setLabelers(
subscribedDids.filter(did => did !== BSKY_LABELER_DID) as DidString[],
subscribedDids.filter(did => did !== api.moderation.did) as DidString[],
)
}
@@ -94,7 +94,7 @@ export function configureModerationForAccount(
}
function switchToBskyAppLabeler() {
configureGlobalAppLabelers([BSKY_LABELER_DID])
configureGlobalAppLabelers([api.moderation.did])
}
/** Resolve and install the test environment's moderation authority. */