diff --git a/internal/controllers/comments/user.go b/internal/controllers/comments/user.go index d17d224..e8f37b5 100644 --- a/internal/controllers/comments/user.go +++ b/internal/controllers/comments/user.go @@ -117,7 +117,7 @@ func GenerateResponse(comments []models.Comment, uid uint, likeResult []CommentL currentUser, err := queries.GetUserByID(nil, uid) if err != nil { c.Reward = -2 - }else if !currentUser.IsAdmin && !currentUser.IsCommunityAdmin { + } else if !currentUser.IsAdmin && !currentUser.IsCommunityAdmin { c.Reward = -1 } if !anonymous || v.User.ID == uid {