From de60edfa610c0db2034ab3343b8a06d4e9d30809 Mon Sep 17 00:00:00 2001 From: Umputun Date: Tue, 29 May 2018 16:59:47 -0500 Subject: [PATCH] add site scope to comment create --- app/rest/api/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/api/rest.go b/app/rest/api/rest.go index e2db5bac..c68b65ae 100644 --- a/app/rest/api/rest.go +++ b/app/rest/api/rest.go @@ -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)