mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hook debugTopics to override X-Bsky-Topics (#6060)

authored by danabra.mov and committed by

GitHub 8d5b551e 125ac504

+8 -1
+8 -1
src/lib/api/feed/utils.ts
··· 1 1 import {AtUri} from '@atproto/api' 2 2 3 3 import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants' 4 + import {isWeb} from '#/platform/detection' 4 5 import {UsePreferencesQueryResponse} from '#/state/queries/preferences' 5 6 7 + let debugTopics = '' 8 + if (isWeb && typeof window !== 'undefined') { 9 + const params = new URLSearchParams(window.location.search) 10 + debugTopics = params.get('debug_topics') ?? '' 11 + } 12 + 6 13 export function createBskyTopicsHeader(userInterests?: string) { 7 14 return { 8 - 'X-Bsky-Topics': userInterests || '', 15 + 'X-Bsky-Topics': debugTopics || userInterests || '', 9 16 } 10 17 } 11 18