diff --git a/src/main/java/page/clab/api/domain/community/board/application/service/BoardRegisterService.java b/src/main/java/page/clab/api/domain/community/board/application/service/BoardRegisterService.java index 307ad19f6..6300b58a2 100644 --- a/src/main/java/page/clab/api/domain/community/board/application/service/BoardRegisterService.java +++ b/src/main/java/page/clab/api/domain/community/board/application/service/BoardRegisterService.java @@ -65,7 +65,7 @@ public String registerBoard(BoardRequestDto requestDto) throws PermissionDeniedE Board savedBoard = registerBoardPort.save(board); - if (savedBoard.isDevelopmentQna() && requestDto.getHashtagIdList() != null) { + if (requestDto.getHashtagIdList() != null) { registerBoardHashtagUseCase.registerBoardHashtag( boardHashtagDtoMapper.toDto(savedBoard.getId(), requestDto.getHashtagIdList())); } diff --git a/src/main/java/page/clab/api/domain/community/board/domain/Board.java b/src/main/java/page/clab/api/domain/community/board/domain/Board.java index 089795c91..069d355c2 100644 --- a/src/main/java/page/clab/api/domain/community/board/domain/Board.java +++ b/src/main/java/page/clab/api/domain/community/board/domain/Board.java @@ -75,8 +75,8 @@ public void validateAccessPermissionForCreation(MemberDetailedInfoDto currentMem } } - public void validateBoardHashtagRegistration(List hashtagIdList) { - if (!isDevelopmentQna() && (hashtagIdList != null && !hashtagIdList.isEmpty())) { + public void validateBoardHashtagRegistration(List hashtagIds) { + if (!isDevelopmentQna() && (hashtagIds != null && !hashtagIds.isEmpty())) { throw new InvalidBoardCategoryHashtagException("개발질문 게시판에만 해시태그를 등록할 수 있습니다."); } }