diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index a3597a84..386d110c 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -62,7 +62,7 @@ limit: 25, type_: 'All', post_id: data.post.value.post_view.post.id, - sort: data.commentSort.value, + sort: settings.defaultSort.comments, max_depth: data.post.value.post_view.counts.comments > 100 ? 1 : 3, }) loading = false diff --git a/src/routes/post/[instance]/[id=integer]/CommentProvider.svelte b/src/routes/post/[instance]/[id=integer]/CommentProvider.svelte index dfb8c03a..f2f19f3f 100644 --- a/src/routes/post/[instance]/[id=integer]/CommentProvider.svelte +++ b/src/routes/post/[instance]/[id=integer]/CommentProvider.svelte @@ -6,6 +6,7 @@ import { buildCommentsTree } from '$lib/components/lemmy/comment/comments.svelte' import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte' import { t } from '$lib/i18n/translations' + import { settings } from '$lib/settings.svelte' import type { CommentSortType, GetCommentsResponse, @@ -72,7 +73,11 @@ {#snippet action()}
-