Skip to content

Commit

Permalink
Add dids for discover debug (#6063)
Browse files Browse the repository at this point in the history
* add dids

* keep is_internal
  • Loading branch information
haileyok authored Nov 1, 2024
1 parent 8d5b551 commit fb4210b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export const STARTER_PACK_MAX_SIZE = 150
// -prf
export const JOINED_THIS_WEEK = 650000 // estimate as of 10/28/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`
export function FEEDBACK_FORM_URL({
email,
Expand Down
6 changes: 4 additions & 2 deletions src/view/com/util/post-ctrls/PostCtrls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 ||
Expand Down Expand Up @@ -363,7 +365,7 @@ let PostCtrls = ({
threadgateRecord={threadgateRecord}
/>
</View>
{IS_INTERNAL && feedContext && (
{isDiscoverDebugUser && feedContext && (
<Pressable
accessible={false}
style={{
Expand Down

0 comments on commit fb4210b

Please sign in to comment.