From 63cd560f177bb9a80ce5099aeb5d2fda1311822a Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 17 Jan 2025 11:15:27 -0800 Subject: [PATCH] add did --- src/lib/constants.ts | 3 +++ src/state/feed-feedback.tsx | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 566edf69db..1c049ea818 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -63,6 +63,9 @@ export function IS_PROD_SERVICE(url?: string) { export const PROD_DEFAULT_FEED = (rkey: string) => `at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/${rkey}` +export const STAGING_DEFAULT_FEED = (rkey: string) => + `at://did:plc:yofh3kx63drvfljkibw5zuxo/app.bsky.feed.generator/${rkey}` + export const POST_IMG_MAX = { width: 2000, height: 2000, diff --git a/src/state/feed-feedback.tsx b/src/state/feed-feedback.tsx index 02f98ad145..c92f8455d9 100644 --- a/src/state/feed-feedback.tsx +++ b/src/state/feed-feedback.tsx @@ -3,7 +3,7 @@ import {AppState, AppStateStatus} from 'react-native' import {AppBskyFeedDefs} from '@atproto/api' import throttle from 'lodash.throttle' -import {PROD_DEFAULT_FEED} from '#/lib/constants' +import {PROD_DEFAULT_FEED, STAGING_DEFAULT_FEED} from '#/lib/constants' import {logEvent} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {FeedDescriptor, FeedPostSliceItem} from '#/state/queries/post-feed' @@ -155,7 +155,11 @@ export function useFeedFeedbackContext() { // place, we're hardcoding it to the discover feed. // -prf function isDiscoverFeed(feed: FeedDescriptor) { - return feed === `feedgen|${PROD_DEFAULT_FEED('whats-hot')}` + return ( + feed === `feedgen|${PROD_DEFAULT_FEED('whats-hot')}` || + feed === `feedgen|${PROD_DEFAULT_FEED('thevides')}` || + feed === `feedgen|${STAGING_DEFAULT_FEED('thevids')}` + ) } function toString(interaction: AppBskyFeedDefs.Interaction): string {