Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
12345678910111213141516171819202122import {AtUri} from '@atproto/api'
import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants'import {UsePreferencesQueryResponse} from '#/state/queries/preferences'
export function createBskyTopicsHeader(userInterests?: string) { return { 'X-Bsky-Topics': userInterests || '', }}
export function aggregateUserInterests( preferences?: UsePreferencesQueryResponse,) { return preferences?.interests?.tags?.join(',') || ''}
export function isBlueskyOwnedFeed(feedUri: string) { const uri = new AtUri(feedUri) return BSKY_FEED_OWNER_DIDS.includes(uri.host)}