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] 소소피드, 소소피드 댓글 신고 API 구현 #130

Merged
merged 17 commits into from
Aug 7, 2024
Merged

Conversation

ChaeAg
Copy link
Member

@ChaeAg ChaeAg commented Aug 3, 2024

Related Issue

Key Changes

소소피드와 소소피드 댓글의 신고 API 를 구현했습니다.

  • 신고의 사유는 스포일러 신고부적절한 표현 신고로 총 두가지입니다.
  • 3회 누적으로 같은 종류의 신고를 받는다면 해당 피드 또는 댓글은 숨김 처리가 됩니다.
  • 사용자는 같은 피드 또는 댓글에 두가지 사유 모두 신고가 가능합니다.

신고 피드(ReportedFeed), 신고 댓글(ReportedComment) 엔티티 구조가 변경되었습니다.

  • 기존 신고 엔티티 : 엔티티 ID와 각 신고 사유마다의 신고 횟수 컬럼으로 구성 (1:1 매핑으로 횟수를 증가시키는 방식)
  • new 신고 엔티티 : 엔티티 ID와 신고 사유, 신고한 유저 컬럼으로 구성 (신고가 접수될 때마다 튜플+1)
    • 신고한 유저 컬럼이 추가된 이유 : 동일한 사용자의 동일한 피드, 댓글 중복 신고를 막기 위해

신고 접수 시 디스코드 알림 기능을 구현했습니다.

  • 신고가 접수되면 무조건 지정된 디스코드 채널로 알림이 전송됩니다.
  • 알림 내용은 신고 사유, 신고된 글의 작성자 정보, 신고된 글의 내용 으로 구성되어 있습니다.

To Reviewers

아래 블로그 참고하여 디스코드 알림 구현했습니다
해당 PR 머지 전에 yml 파일에 디스코드 웹 훅 주소 업데이트 해놓겠습니다!

References

https://developer-youn.tistory.com/151

@ChaeAg ChaeAg requested a review from Kim-TaeUk August 6, 2024 09:23
Copy link
Contributor

@rinarina0429 rinarina0429 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!! 피드 부분이 신경써야할게 많네요😅😅
리뷰 한번만 확인해주시고 다시 request 해주세요!

@rinarina0429 rinarina0429 self-requested a review August 7, 2024 07:14
Copy link
Contributor

@rinarina0429 rinarina0429 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~~~!!

@ChaeAg ChaeAg merged commit eb0d081 into dev Aug 7, 2024
1 check passed
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.

[FEAT] 소소피드, 소소피드 댓글 신고 관련 API 구현
3 participants