From c54e332a9e06610e34840aee163abc21965c0027 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Wed, 29 Apr 2026 12:52:26 +0800 Subject: [PATCH] feat: enable recursive comment threading up to 3 levels deep --- components/comments/comment-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/comments/comment-item.tsx b/components/comments/comment-item.tsx index 2952685..eb61219 100644 --- a/components/comments/comment-item.tsx +++ b/components/comments/comment-item.tsx @@ -14,6 +14,8 @@ import { useSession } from "@/lib/auth-client" import { TiptapRenderer } from "@/components/tiptap-renderer" import { TiptapEditor } from "@/components/tiptap-editor" +const MAX_DEPTH = 3 + export interface CommentData { id: string gameId: string @@ -40,8 +42,6 @@ function getInitial(name: string | null | undefined): string { return name?.charAt(0)?.toUpperCase() || "?" } -const MAX_DEPTH = 3 - interface CommentItemProps { comment: CommentData depth?: number