Bluesky app fork with some witchin' additions 💫

Sort profile feedgens by likes (#4380)

* Sort profile feedgens by likes

* Sort entire set as we get more pages

* Nah

This reverts commit 3b8714fd97bb113cfd8c588d5cdfd063d395f553.

* Update profile-feedgens.ts

---------

Co-authored-by: dan <dan.abramov@gmail.com>

authored by

Eric Bailey
dan
and committed by
GitHub
14cddb7e 848151c4

+4 -1
+4 -1
src/state/queries/profile-feedgens.ts
··· 3 3 4 4 import {useAgent} from '#/state/session' 5 5 6 - const PAGE_SIZE = 30 6 + const PAGE_SIZE = 50 7 7 type RQPageParam = string | undefined 8 8 9 9 // TODO refactor invalidate on mutate? ··· 29 29 actor: did, 30 30 limit: PAGE_SIZE, 31 31 cursor: pageParam, 32 + }) 33 + res.data.feeds.sort((a, b) => { 34 + return (b.likeCount || 0) - (a.likeCount || 0) 32 35 }) 33 36 return res.data 34 37 },