JavaScript-optional public web frontend for Bluesky anartia.kelinci.net
sveltekit atcute bluesky typescript svelte
7
fork

Configure Feed

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

fix: filter out decomissioned feeds

Mary 63414031 5d4cda41

+18 -2
+13
src/lib/constants.ts
··· 33 33 // "Re+Posts" by @skyfeed.xyz 34 34 `at://did:plc:tenurhgjptubkk5zf5qhi3og/app.bsky.feed.generator/re-plus-posts`, 35 35 ]; 36 + 37 + export const DECOMISSIONED_FEEDS: CanonicalResourceUri[] = [ 38 + // "Japanese Cluster" by @jaz.bsky.social 39 + `at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/cl-japanese`, 40 + // "Brazil Supercluster" by @jaz.bsky.social 41 + `at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/cl-brasil`, 42 + // "Cat Pics" by @jaz.bsky.social 43 + `at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/cv:cat`, 44 + // "Trans+Queer Shitposters" by @jaz.bsky.social 45 + `at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/cl-tqsp`, 46 + // "Dog Pics" by @jaz.bsky.social 47 + `at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/cv:dog`, 48 + ];
+5 -2
src/routes/(app)/search/feeds/+page.ts
··· 1 1 import { Client, ok, simpleFetchHandler } from '@atcute/client'; 2 2 3 - import { AUTHENTICATED_FEEDS } from '$lib/constants'; 3 + import { AUTHENTICATED_FEEDS, DECOMISSIONED_FEEDS } from '$lib/constants'; 4 4 import { asString, useSearchParams } from '$lib/utils/search-params'; 5 5 6 6 import { PUBLIC_APPVIEW_URL } from '$env/static/public'; ··· 28 28 29 29 let feeds = data.feeds; 30 30 if (query.length === 0) { 31 - feeds = feeds.filter((feed) => !AUTHENTICATED_FEEDS.includes(feed.uri as CanonicalResourceUri)); 31 + feeds = feeds.filter((feed) => { 32 + const uri = feed.uri as CanonicalResourceUri; 33 + return !AUTHENTICATED_FEEDS.includes(uri) && !DECOMISSIONED_FEEDS.includes(uri); 34 + }); 32 35 } 33 36 34 37 return {