Skip to content

Commit 62ce9ea

Browse files
authored
Merge pull request #163 from team-gogo/fix/community-profanity-filter
[community] 욕설 필터 조건식, 검증식 수정
2 parents dae25dd + 4174939 commit 62ce9ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/gogo/gogostage/domain/community/root/persistence/CommunityCustomRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CommunityCustomRepositoryImpl(
3030
predicate.and(community.category.eq(it))
3131
}
3232

33-
if (!isActiveProfanityFilter.not()) {
33+
if (isActiveProfanityFilter.not()) {
3434
predicate.and(board.isFiltered.eq(false))
3535
}
3636

src/main/kotlin/gogo/gogostage/domain/stage/root/application/StageValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class StageValidator(
8787
}
8888

8989
fun validProfanityFilter(student: StudentByIdStub, board: Board) {
90-
if (board.isFiltered && student.isActiveProfanityFilter) {
90+
if (board.isFiltered && student.isActiveProfanityFilter.not()) {
9191
throw StageException("해당 게시글은 욕설 필터가 켜져있어 볼 수 없습니다.", HttpStatus.BAD_REQUEST.value())
9292
}
9393
}

0 commit comments

Comments
 (0)