Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] 욕설 필터링 업그레이드 #69

Merged
merged 7 commits into from
Jan 18, 2024

Conversation

dong2ast
Copy link
Contributor

📌 관련 이슈

closed #68

✨ 어떤 이유로 변경된 내용인지

  • 욕설 필터링이 어절 단위로 진행됩니다 (욕설이 포함된 단어는 전체 변환)
  • 욕설 필터링이 발생할 경우 로그로 수집됩니다.

🙏 검토 혹은 리뷰어에게 남기고 싶은 말

@dong2ast dong2ast added ☁️Database DB 관련 ✨Feat 새로운 기능 추가 동휘⚡️ 🔧Modify 코드 수정 (기능의 변화가 있을 때) 🔥 Pull Request PR 날림 labels Jan 17, 2024
@dong2ast dong2ast self-assigned this Jan 17, 2024
@dong2ast dong2ast linked an issue Jan 17, 2024 that may be closed by this pull request
2 tasks
dong2ast and others added 2 commits January 17, 2024 18:01
# Conflicts:
#	src/main/java/org/sopt/lequuServer/domain/book/dto/request/BookCreateRequestDto.java
Copy link
Contributor

@ddongseop ddongseop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋네요. 아주 좋아요.

public BadWordFilterService() throws IOException {
badWordFiltering = new BadWordFiltering();
public BadWordFilterService(BadWordLogRepository badWordLogRepository) throws IOException {
badWordFiltering = new BadWordFiltering("♡");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

하트로 잘 바꼈군요!ㅋㅎ

Comment on lines +49 to +65
if (!changedWord.equals(string)) {
badWordLogRepository.save(BadWordLog.of(memberId, string));

String[] split = changedWord.split(" ");
List<String> result = new ArrayList<>();

for (String s : split) {
if (s.contains("♡")){
result.add(s.replaceAll(".", "♡"));
continue;
}
result.add(s);
}
return String.join(" ", result);
}

return changedWord;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와우 직접 바꿨네요 :)

# Conflicts:
#	src/main/java/org/sopt/lequuServer/domain/note/facade/NoteFacade.java
Copy link
Contributor

@eeddiinn eeddiinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

김동휘 .. 그는 신인가 .....

@dong2ast dong2ast merged commit 0e1b86e into develop Jan 18, 2024
1 check passed
@dong2ast dong2ast deleted the feat/#68-upgrade_badword_filter branch January 18, 2024 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☁️Database DB 관련 ✨Feat 새로운 기능 추가 동휘⚡️ 🔧Modify 코드 수정 (기능의 변화가 있을 때) 🔥 Pull Request PR 날림
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 욕설 필터링 어절 단위로 변경 및 로그 테이블 수집
3 participants