Add dids for discover debug (#6063)

* add dids

* keep is_internal
This commit is contained in:
Hailey
2024-11-01 12:09:13 -07:00
committed by GitHub
parent 8d5b551ed6
commit fb4210b36c
2 changed files with 12 additions and 2 deletions
+4 -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'
@@ -85,6 +85,8 @@ let PostCtrls = ({
const {sendInteraction} = useFeedFeedbackContext()
const {captureAction} = useProgressGuideControls()
const playHaptic = useHaptics()
const isDiscoverDebugUser =
IS_INTERNAL || DISCOVER_DEBUG_DIDS[currentAccount?.did ?? '']
const isBlocked = Boolean(
post.author.viewer?.blocking ||
post.author.viewer?.blockedBy ||
@@ -363,7 +365,7 @@ let PostCtrls = ({
threadgateRecord={threadgateRecord}
/>
</View>
{IS_INTERNAL && feedContext && (
{isDiscoverDebugUser && feedContext && (
<Pressable
accessible={false}
style={{