fix: piefed page cursor types won't work

This commit is contained in:
Xylight committed 2025-09-21 20:51:48 -07:00
1 parent 9a27e95a5f
commit 7f9d8c6f86
11 files changed
+504 -66

No files matched your search

+5 -2
View File
@@ -19,10 +19,13 @@ export async function load({ url, fetch, route, params }) {
(i) => i.feeds.find((j) => j.id.toString() == p.feed_id!),
)
const postPromise = piefed.getPosts(p)
return {
...(await piefed.getPosts(p)),
posts: (await postPromise).posts,
next_page: (await postPromise).next_page,
feed: piefedFeedData,
params: p,
params: { ...p, page_cursor: (await postPromise).next_page },
client: {},
}
}).load({