Merge branch 'main' into feature-ssulbox

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
skkimandCursor committed 2026-08-19 15:15:53 +09:00
commit 4fe065378f
25 files changed
+2578 -358

No files matched your search

+2 -3
View File
@@ -658,18 +658,17 @@ export async function getVideoComments(
return response.json();
}
// 댓글 작성
// 댓글 작성 (작성자 닉네임/프로필은 서버가 로그인된 카카오 정보로 채움)
export async function postVideoComment(
videoId: string,
content: string,
nickname?: string,
parentId?: number,
contentType: ContentType = 'video'
): Promise<CommentItem> {
const response = await authenticatedFetch(`${API_URL}/comment/video/${videoId}?type=${contentType}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ content, nickname: nickname || '익명', parent_id: parentId ?? null }),
body: JSON.stringify({ content, parent_id: parentId ?? null }),
});
if (!response.ok) {