Run codemod for replacing BskyAgent with AtpAgent (#10862)

This commit is contained in:
DS Boyce
2026-06-11 08:46:01 -07:00
committed by GitHub
parent e3e7db2350
commit c8634105c1
37 changed files with 195 additions and 134 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import {useMemo} from 'react'
import {
type AppBskyLabelerDefs,
BskyAgent,
AtpAgent,
type ComAtprotoLabelDefs,
type InterpretedLabelValueDefinition,
LABELS,
@@ -91,9 +91,9 @@ export function isAppLabeler(
| AppBskyLabelerDefs.LabelerViewDetailed,
): boolean {
if (typeof labeler === 'string') {
return BskyAgent.appLabelers.includes(labeler)
return AtpAgent.appLabelers.includes(labeler)
}
return BskyAgent.appLabelers.includes(labeler.creator.did)
return AtpAgent.appLabelers.includes(labeler.creator.did)
}
export function isLabelerSubscribed(