diff --git a/backend/app/rest/api/rest_private.go b/backend/app/rest/api/rest_private.go index e6445583..74c17fb6 100644 --- a/backend/app/rest/api/rest_private.go +++ b/backend/app/rest/api/rest_private.go @@ -172,7 +172,7 @@ func (s *Rest) voteCtrl(w http.ResponseWriter, r *http.Request) { rest.SendErrorJSON(w, r, http.StatusBadRequest, err, "can't vote for comment") return } - s.Cache.Flush(locator.URL) + s.Cache.Flush(locator.URL, comment.User.ID) render.JSON(w, r, JSON{"id": comment.ID, "score": comment.Score}) }