Skip to content

Commit

Permalink
status 409
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonju977 committed Sep 10, 2024
1 parent 0baed19 commit 92fc2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/articles/views/article_reaction_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def post(self, request, *args, **kwargs):
if article.user == user:
return Response(
{"message": "게시글 작성자는 좋아요를 누를 수 없습니다."},
status=status.HTTP_400_BAD_REQUEST,
status=status.HTTP_409_CONFLICT,
)

if user in article.likes.all():
Expand Down

0 comments on commit 92fc2c0

Please sign in to comment.