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

@@ -68,6 +68,7 @@
content: value,
post_id: postId,
parent_id: parentId,
language_id: language,
})
oncomment?.(response)
+1 -6
View File
@@ -28,11 +28,7 @@
}: Props = $props()
</script>
<div
class={['flex flex-col flex-1 rounded-none list-none', clazz]}
color="none"
padding="none"
>
<div class={['flex flex-col flex-1 rounded-none list-none', clazz]}>
{#if meta}
<div class="flex flex-row justify-between items-center gap-2">
<div class="flex flex-col gap-2">
@@ -68,7 +64,6 @@
</div>
{/if}
<Comment
postId={comment.post.id}
node={{ children: [], comment_view: comment, depth: 1, expanded: true }}
replying={false}
{meta}
@@ -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({