cleanup: $lib/feature/comment

This commit is contained in:
Xylight committed 2026-02-08 11:41:55 -08:00
1 parent 48fa25c285
commit 20c7b2bcad
5 files changed
+12 -19

No files matched your search

@@ -18,8 +18,6 @@
let { nodes = $bindable(), post }: Props = $props()
let childrenPage = 0
async function fetchChildren(parent: CommentNodeI) {
if (
!(
@@ -37,7 +35,6 @@
max_depth: 5,
parent_id: parent.comment_view.comment.id,
type_: 'All',
page: childrenPage,
})
if (newComments.comments.length == 0) {
@@ -52,7 +49,6 @@
newComments.comments,
parent.depth,
)[0].children
childrenPage++
} catch (err) {
console.error(err)
toast({