Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#95 에 관한 커밋입니다.
유저 프로필에서 다음과 같은 문제가 있었습니다.
댓글을 삭제 할 때
posts는 차감되는데,comment_count는 바뀌지 않아 발생하는 문제인것 같습니다.is_removed=False로 삭제되지 않은 코멘트들의 수만 셈으로써 해결할 수 있습니다.(개발환경을 세팅하지 못해서 테스트는 못해봤습니다. 😢 꼭 검증해보세요)
그리고, 한 게시물에서 같은 유저가 같은 내용의 코멘트를 달 때 코멘트가 정상적으로 달리지 않고
posts가 차감되는 현상이 있습니다.https://stackoverflow.com/questions/34237451/same-content-for-same-user-and-same-post-in-django-comments-not-getting-saved
위 답변을 참고하시면 좋을것 같습니다.