fix: piefed page cursor types won't work
This commit is contained in:
11 files changed
+504
-66
No files matched your search
@@ -26,9 +26,9 @@
|
||||
</svelte:head>
|
||||
|
||||
<PostListShell
|
||||
client={data.client}
|
||||
posts={data.posts}
|
||||
cursor={data.next_page}
|
||||
client={data.client}
|
||||
getParams={data.params}
|
||||
params={{
|
||||
sort: data.params.sort!,
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user