diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index 55e84262..0fb56c71 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -179,11 +179,14 @@ {postId} parentId={node.comment_view.comment.id} on:comment={(e) => { - node.children.push({ - children: [], - comment_view: e.detail.comment_view, - depth: node.depth + 1, - }) + node.children = [ + { + children: [], + comment_view: e.detail.comment_view, + depth: node.depth + 1, + }, + ...node.children, + ] replying = false }} /> diff --git a/src/lib/components/lemmy/comment/CommentForm.svelte b/src/lib/components/lemmy/comment/CommentForm.svelte index 545b22c0..b45818f1 100644 --- a/src/lib/components/lemmy/comment/CommentForm.svelte +++ b/src/lib/components/lemmy/comment/CommentForm.svelte @@ -43,7 +43,7 @@ value = '' toast({ - content: 'Your comment was added. You may need to refresh to see it.', + content: 'Your comment was submitted.', type: 'success', }) } catch (err) { diff --git a/src/lib/components/lemmy/comment/Comments.svelte b/src/lib/components/lemmy/comment/Comments.svelte index 2fe3f3e2..01abf42b 100644 --- a/src/lib/components/lemmy/comment/Comments.svelte +++ b/src/lib/components/lemmy/comment/Comments.svelte @@ -104,7 +104,7 @@ {#each nodes as node (node.comment_view.comment.id)}