diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-03-13 16:59:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 16:59:21 +0200 |
commit | c402ae741f5a222cbc309f58c67fb3abe1556f8c (patch) | |
tree | ce0a560098db052d1e133cc5ec0e88fd9d36d6f8 /src/view/com/util/post-ctrls/PostCtrls.tsx | |
parent | b2a6281b369ecd35b4bed73609af6f4153b3a768 (diff) | |
download | voidsky-c402ae741f5a222cbc309f58c67fb3abe1556f8c.tar.zst |
Restore hardcoded DIDs for Discover debug (#7977)
Diffstat (limited to 'src/view/com/util/post-ctrls/PostCtrls.tsx')
-rw-r--r-- | src/view/com/util/post-ctrls/PostCtrls.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index 9a077d6f2..fe583e801 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -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 || |