Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix sort

+16 -7
+1 -1
src/screens/Onboarding/StepAlgoFeeds/index.tsx
··· 28 28 gradient?: typeof tokens.gradients.midnight | typeof tokens.gradients.nordic 29 29 } 30 30 31 - const PRIMARY_FEEDS: FeedConfig[] = [ 31 + export const PRIMARY_FEEDS: FeedConfig[] = [ 32 32 { 33 33 default: IS_PROD, // these feeds are only available in prod 34 34 uri: 'at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/whats-hot',
+15 -6
src/screens/Onboarding/util.ts
··· 2 2 3 3 import {until} from '#/lib/async/until' 4 4 import {getAgent} from '#/state/session' 5 + import {PRIMARY_FEEDS} from './StepAlgoFeeds' 5 6 6 7 function shuffle(array: any) { 7 8 let currentIndex = array.length, ··· 110 111 * feed after Following 111 112 */ 112 113 export function sortPrimaryAlgorithmFeeds(uris: string[]) { 113 - return uris.sort(uri => { 114 - return uri.includes('the-algorithm') 115 - ? -1 116 - : uri.includes('whats-hot') 117 - ? 0 118 - : 1 114 + return uris.sort((a, b) => { 115 + if (a === PRIMARY_FEEDS[0].uri) { 116 + return -1 117 + } 118 + if (b === PRIMARY_FEEDS[0].uri) { 119 + return 1 120 + } 121 + if (a === PRIMARY_FEEDS[1].uri) { 122 + return -1 123 + } 124 + if (b === PRIMARY_FEEDS[1].uri) { 125 + return 1 126 + } 127 + return a.localeCompare(b) 119 128 }) 120 129 }