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

+4 -2
View File
@@ -19,10 +19,12 @@ export async function load({ url, fetch, route, params }) {
include_communities: true,
}).then((i) => i.topics.find((j) => j.id.toString() == p.topic_id!))
const posts = await piefed.getPosts(p)
return {
...(await piefed.getPosts(p)),
...posts,
topic: piefedTopicData,
params: p,
params: { ...p, page_cursor: posts.next_page },
client: {},
}
}).load({