mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1import {AtUri} from '@atproto/api' 2 3import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants' 4import {UsePreferencesQueryResponse} from '#/state/queries/preferences' 5 6export function createBskyTopicsHeader(userInterests?: string) { 7 return { 8 'X-Bsky-Topics': userInterests || '', 9 } 10} 11 12export function aggregateUserInterests( 13 preferences?: UsePreferencesQueryResponse, 14) { 15 return preferences?.interests?.tags?.join(',') || '' 16} 17 18export function isBlueskyOwnedFeed(feedUri: string) { 19 const uri = new AtUri(feedUri) 20 return BSKY_FEED_OWNER_DIDS.includes(uri.host) 21}