invalidate user_id scope on vote change #151

This commit is contained in:
Umputun
2018-07-10 02:02:17 -05:00
parent e17ac360ff
commit b6cda91dd9
+1 -1
View File
@@ -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})
}