Add dids for discover debug (#6063)
* add dids
* keep is_internal
(cherry picked from commit fb4210b36c)
This commit is contained in:
@@ -23,6 +23,14 @@ export const STARTER_PACK_MAX_SIZE = 150
|
|||||||
// -prf
|
// -prf
|
||||||
export const JOINED_THIS_WEEK = 150000 // estimate as of 10/9/24
|
export const JOINED_THIS_WEEK = 150000 // estimate as of 10/9/24
|
||||||
|
|
||||||
|
export const DISCOVER_DEBUG_DIDS: Record<string, true> = {
|
||||||
|
'did:plc:oisofpd7lj26yvgiivf3lxsi': true, // hailey.at
|
||||||
|
'did:plc:fpruhuo22xkm5o7ttr2ktxdo': true, // danabra.mov
|
||||||
|
'did:plc:p2cp5gopk7mgjegy6wadk3ep': true, // samuel.bsky.team
|
||||||
|
'did:plc:ragtjsm2j2vknwkz3zp4oxrd': true, // pfrazee.com
|
||||||
|
'did:plc:vpkhqolt662uhesyj6nxm7ys': true, // why.bsky.team
|
||||||
|
}
|
||||||
|
|
||||||
const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new`
|
const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new`
|
||||||
export function FEEDBACK_FORM_URL({
|
export function FEEDBACK_FORM_URL({
|
||||||
email,
|
email,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import {msg, plural} from '@lingui/macro'
|
|||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {IS_INTERNAL} from '#/lib/app-info'
|
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 {CountWheel} from '#/lib/custom-animations/CountWheel'
|
||||||
import {AnimatedLikeIcon} from '#/lib/custom-animations/LikeIcon'
|
import {AnimatedLikeIcon} from '#/lib/custom-animations/LikeIcon'
|
||||||
import {useHaptics} from '#/lib/haptics'
|
import {useHaptics} from '#/lib/haptics'
|
||||||
@@ -85,6 +85,8 @@ let PostCtrls = ({
|
|||||||
const {sendInteraction} = useFeedFeedbackContext()
|
const {sendInteraction} = useFeedFeedbackContext()
|
||||||
const {captureAction} = useProgressGuideControls()
|
const {captureAction} = useProgressGuideControls()
|
||||||
const playHaptic = useHaptics()
|
const playHaptic = useHaptics()
|
||||||
|
const isDiscoverDebugUser =
|
||||||
|
IS_INTERNAL || DISCOVER_DEBUG_DIDS[currentAccount?.did ?? '']
|
||||||
const isBlocked = Boolean(
|
const isBlocked = Boolean(
|
||||||
post.author.viewer?.blocking ||
|
post.author.viewer?.blocking ||
|
||||||
post.author.viewer?.blockedBy ||
|
post.author.viewer?.blockedBy ||
|
||||||
@@ -374,7 +376,7 @@ let PostCtrls = ({
|
|||||||
threadgateRecord={threadgateRecord}
|
threadgateRecord={threadgateRecord}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
{IS_INTERNAL && feedContext && (
|
{isDiscoverDebugUser && feedContext && (
|
||||||
<Pressable
|
<Pressable
|
||||||
accessible={false}
|
accessible={false}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user