Skip to content

[Feat] 미리보기 댓글에 사진 존재 유무 필드 추가#131

Merged
issuejong merged 1 commit into
developfrom
feat/#129
May 29, 2026
Merged

[Feat] 미리보기 댓글에 사진 존재 유무 필드 추가#131
issuejong merged 1 commit into
developfrom
feat/#129

Conversation

@issuejong

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

#129

📝작업 내용

질문 목록의 댓글 미리보기에서 이미지 첨부 여부를 확인할 수 있도록 hasImage 필드를 추가했습니다.

  • 미리보기 댓글 응답 DTO 확장

    • PreviewCommentResponsehasImage 필드 추가
    • 댓글에 이미지가 존재하는 경우 true, 없는 경우 false 반환
  • 미리보기 댓글 조회 쿼리 수정

    • 댓글 미리보기 조회 시 imageUrl도 함께 조회하도록 추가
    • PreviewCommentRow projection에 imageUrl 필드 추가
  • 이미지 존재 여부 판단 로직 추가

    • imageUrlnull이 아니고 빈 문자열이 아닌 경우 이미지가 있는 댓글로 판단
    • 프론트에서 hasImagetrue일 때 “사진 보기” 버튼을 노출할 수 있도록 처리

@issuejong issuejong self-assigned this May 29, 2026
@issuejong issuejong added the enhancement New feature or request label May 29, 2026
@issuejong issuejong linked an issue May 29, 2026 that may be closed by this pull request
3 tasks
@issuejong issuejong merged commit 88a1f5b into develop May 29, 2026
1 check passed
@issuejong issuejong deleted the feat/#129 branch May 29, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 질문 메인 페이지에서 사진 미리보기 기능 구현

1 participant