diff --git a/bun.lockb b/bun.lockb index 54505bc1..35b3e761 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/lib/components/lemmy/post/PostFeed.svelte b/src/lib/components/lemmy/post/PostFeed.svelte index 5919000b..e6c98f8c 100644 --- a/src/lib/components/lemmy/post/PostFeed.svelte +++ b/src/lib/components/lemmy/post/PostFeed.svelte @@ -36,8 +36,9 @@ const results: (PostViewWithCrossposts | PostViewWithoutCrossposts)[] = [] const seenUrls = new Set() - posts.forEach((post) => { - if (!post.post.url) { + posts?.forEach((post) => { + if (!post) return + if (!post?.post?.url) { results.push(post) return } @@ -70,7 +71,7 @@ ? 'gap-3 md:gap-4' : 'divide-y'} divide-slate-200 dark:divide-zinc-800" > - {#if posts.length == 0} + {#if posts?.length == 0}
-
-
- - - {#key $userSettings.separateVotes ? upvotes : score} +
- {#if $userSettings.separateVotes} -
-
-
- {/if} -
- - {#if $userSettings.separateVotes} - - {#key downvotes} - - - - {/key} - - {/if} -
+ +
+
diff --git a/src/lib/components/util/FormattedNumber.svelte b/src/lib/components/util/FormattedNumber.svelte index b66d590e..ca7a4da5 100644 --- a/src/lib/components/util/FormattedNumber.svelte +++ b/src/lib/components/util/FormattedNumber.svelte @@ -6,4 +6,6 @@ } -{Intl.NumberFormat(locale, options).format(number)} + + {Intl.NumberFormat(locale, options).format(number)} + diff --git a/src/routes/c/[name]/+page.ts b/src/routes/c/[name]/+page.ts index 4230f30a..fec109c1 100644 --- a/src/routes/c/[name]/+page.ts +++ b/src/routes/c/[name]/+page.ts @@ -16,7 +16,7 @@ export async function load({ params, fetch, url }) { return { sort: sort, page: page || 1, - posts: client({ func: fetch }).getPosts({ + posts: await client({ func: fetch }).getPosts({ limit: 40, community_name: params.name, page: page, diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index 2044632d..f824c1dc 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -101,14 +101,6 @@
- - Vote style - -