- 작성자·관리자 외 신고 버튼(글 액션·각 댓글) - 신고 누적 블라인드 댓글: 비관리자 가림, 관리자만 본문 + 신고 블라인드 뱃지 - 신고 후 새로고침으로 상태 반영 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,13 @@ export const boardApi = {
|
||||
recommenders(id) {
|
||||
return http.get(`/board/posts/${id}/recommenders`)
|
||||
},
|
||||
// 신고 (누적 5건 시 블라인드)
|
||||
reportPost(id) {
|
||||
return http.post(`/board/posts/${id}/report`)
|
||||
},
|
||||
reportComment(commentId) {
|
||||
return http.post(`/board/comments/${commentId}/report`)
|
||||
},
|
||||
block(id, reason) {
|
||||
return http.post(`/board/posts/${id}/block`, { reason })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user