Skip to content

fix(comment): 삭제 댓글 v1 응답을 tombstone 으로 (#13174 후속) - #603

Merged
sdk-kr merged 1 commit into
mainfrom
fix/v1-comment-tombstone
Jul 31, 2026
Merged

fix(comment): 삭제 댓글 v1 응답을 tombstone 으로 (#13174 후속)#603
sdk-kr merged 1 commit into
mainfrom
fix/v1-comment-tombstone

Conversation

@sdk-kr

@sdk-kr sdk-kr commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

문제

be#602 가 글 응답의 서버 마스킹을 정리하면서 기록해둔 후속 — TransformToV1Comment 는 삭제 댓글에도 원문·작성자·author_ip 를 그대로 실었다(소비처: v1 댓글 목록 API, live_bridge).

변경

  • 삭제 댓글 → tombstone 7키(id·post_id·content:''·depth·created_at·deleted_at·self_deleted). depth/post_id 는 스레드 구조 유지용
  • deleted_by 원값 drop, 판정 결과 self_deleted 만 (글과 동일)
  • 댓글 목록 핸들러의 edit_count 주입도 tombstone 제외
  • 키 집합 고정 테스트 추가

live_bridge 는 자체 tombstone 마스킹이 이미 있고 키 부재에 안전(#602 검증에서 확인).

TransformToV1Comment 가 삭제 댓글에도 원문·작성자·IP 를 그대로 실었다.
글(maskedDeletedV1Post)과 동일 원칙으로 서버 drop — 스레드 구조에 필요한
id·post_id·depth·created_at 과 deleted_at·self_deleted 만 남긴다.
tombstone 에는 edit_count 도 얹지 않는다.
@sdk-kr
sdk-kr marked this pull request as ready for review July 31, 2026 05:01
@sdk-kr
sdk-kr merged commit b940b6f into main Jul 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant