Skip to content

fix(social): 댓글 삭제 미반영 및 알림 이모지 깨짐 버그 수정#169

Merged
coldsunn merged 2 commits into
developfrom
fix/comment-soft-delete
May 24, 2026
Merged

fix(social): 댓글 삭제 미반영 및 알림 이모지 깨짐 버그 수정#169
coldsunn merged 2 commits into
developfrom
fix/comment-soft-delete

Conversation

@coldsunn
Copy link
Copy Markdown
Collaborator

@coldsunn coldsunn commented May 24, 2026

📝 요약(Summary)

  1. 댓글 삭제 미반영 버그
  • 댓글 삭제 API 호출 시 대댓글만 삭제되고 댓글 본체는 미삭제, Modifying(clearAutomatically = true)가 bulk UPDATE 후 1차 캐시를 clear하면서 앞서 로딩한 comment 엔티티가 detached 상태로 전환되어 comment.softDelete() 호출이 무시됨
  • 따라서 clearAutomatically = true 제거
  1. 알림 내용 20자 분할 방법 수정
  • truncate()가 String.length(), substring() 기반 동작이라 이모지가 20번째에 걸리면 버그가 날 수도 있어서 Unicode code point 단위
    기반으로 수정

🔗 Related Issue

  • Closes:

💬 공유사항

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • PR 제목을 커밋 메시지 컨벤션에 맞게 작성했습니다.

coldsunn added 2 commits May 24, 2026 16:58
댓글 삭제 API 호출 시 대댓글만 삭제되고 댓글 본체는 미삭제, @Modifying(clearAutomatically = true)가 bulk UPDATE 후 1차 캐시를
clear하면서 앞서 로딩한 comment 엔티티가 detached 상태로 전환되어 comment.softDelete() 호출이 무시됨
truncate()가 String.length(), substring() 기반 동작이라 이모지가 20번째에 걸리면 버그가 날 수도 있어서 Unicode code point 단위
기반으로 수정
@coldsunn coldsunn merged commit 49607e4 into develop May 24, 2026
1 check passed
@coldsunn coldsunn deleted the fix/comment-soft-delete branch May 24, 2026 08:05
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