diff options
-rw-r--r-- | src/state/queries/profile-feedgens.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/queries/profile-feedgens.ts b/src/state/queries/profile-feedgens.ts index e2508f994..8ad12ab61 100644 --- a/src/state/queries/profile-feedgens.ts +++ b/src/state/queries/profile-feedgens.ts @@ -3,7 +3,7 @@ import {InfiniteData, QueryKey, useInfiniteQuery} from '@tanstack/react-query' import {useAgent} from '#/state/session' -const PAGE_SIZE = 30 +const PAGE_SIZE = 50 type RQPageParam = string | undefined // TODO refactor invalidate on mutate? @@ -30,6 +30,9 @@ export function useProfileFeedgensQuery( limit: PAGE_SIZE, cursor: pageParam, }) + res.data.feeds.sort((a, b) => { + return (b.likeCount || 0) - (a.likeCount || 0) + }) return res.data }, initialPageParam: undefined, |