Restore hardcoded DIDs for Discover debug (#7977)

This commit is contained in:
Samuel Newman
2025-03-13 16:59:21 +02:00
committed by GitHub
parent b2a6281b36
commit c402ae741f
2 changed files with 15 additions and 2 deletions
+5 -2
View File
@@ -18,7 +18,7 @@ import {msg, plural} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {IS_INTERNAL} from '#/lib/app-info'
import {POST_CTRL_HITSLOP} from '#/lib/constants'
import {DISCOVER_DEBUG_DIDS, POST_CTRL_HITSLOP} from '#/lib/constants'
import {CountWheel} from '#/lib/custom-animations/CountWheel'
import {AnimatedLikeIcon} from '#/lib/custom-animations/LikeIcon'
import {useHaptics} from '#/lib/haptics'
@@ -87,7 +87,10 @@ let PostCtrls = ({
const {captureAction} = useProgressGuideControls()
const playHaptic = useHaptics()
const gate = useGate()
const isDiscoverDebugUser = IS_INTERNAL || gate('debug_show_feedcontext')
const isDiscoverDebugUser =
IS_INTERNAL ||
DISCOVER_DEBUG_DIDS[currentAccount?.did || ''] ||
gate('debug_show_feedcontext')
const isBlocked = Boolean(
post.author.viewer?.blocking ||
post.author.viewer?.blockedBy ||