Skip to content

[Fix] 대댓글 작성 시 부모 댓글 검증 로직 보강 #156

@kkw610

Description

@kkw610

버그 내용

대댓글 작성 시 부모 댓글이 존재하는지만 확인하고, 아래 3가지를 검증하지 않음

  • 삭제된 댓글에 대댓글을 달 수 있음
  • 다른 질문의 댓글을 부모로 지정할 수 있어 이상한 데이터가 생길 수 있음
  • 대댓글에 또 대댓글을 다는 것이 가능함 (2depth 초과)

수정 사항

  • resolveParentComment()에 삭제 여부, 질문 소속 여부, 2depth 초과 여부 검증 추가

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions