Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix some key errors (#1951)

authored by

Eric Bailey and committed by
GitHub
0dfc039a c858b583

+10 -5
+6 -1
src/view/com/lists/ProfileLists.tsx
··· 75 75 items = items.concat([EMPTY]) 76 76 } else if (data?.pages) { 77 77 for (const page of data?.pages) { 78 - items = items.concat(page.lists) 78 + items = items.concat( 79 + page.lists.map(l => ({ 80 + ...l, 81 + _reactKey: l.uri, 82 + })), 83 + ) 79 84 } 80 85 } 81 86 if (isError && !isEmpty) {
+4 -4
src/view/screens/Search/Search.tsx
··· 137 137 ), 138 138 ) 139 139 ).flat() 140 - 141 - setSuggestions( 142 - // dedupe 143 - friendsOfFriends.filter(f => !friends.find(f2 => f.did === f2.did)), 140 + const deduped = friendsOfFriends.filter( 141 + (f, i) => friendsOfFriends.findIndex(f2 => f.did === f2.did) === i, 144 142 ) 143 + 144 + setSuggestions(deduped) 145 145 setDataUpdatedAt(Date.now()) 146 146 } 147 147