add site scope to comment create

This commit is contained in:
Umputun
2018-05-29 16:59:47 -05:00
parent 4ec7e1ee4e
commit de60edfa61
+1 -1
View File
@@ -222,7 +222,7 @@ func (s *Rest) createCommentCtrl(w http.ResponseWriter, r *http.Request) {
rest.SendErrorJSON(w, r, http.StatusInternalServerError, err, "can't load created comment")
return
}
s.Cache.Flush(comment.Locator.URL, "last", comment.User.ID)
s.Cache.Flush(comment.Locator.URL, "last", comment.User.ID, comment.Locator.SiteID)
render.Status(r, http.StatusCreated)
render.JSON(w, r, &finalComment)