From 244056f97883647f4e982aa255967cdf05750a6d Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 18 Mar 2018 18:14:30 -0500 Subject: [PATCH] show blocked for admins --- app/rest/api/admin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/rest/api/admin.go b/app/rest/api/admin.go index 4a31922f..2b050419 100644 --- a/app/rest/api/admin.go +++ b/app/rest/api/admin.go @@ -138,7 +138,11 @@ func (a *admin) alterComments(comments []store.Comment, r *http.Request) (res [] // process blocked users if a.dataService.IsBlocked(c.Locator.SiteID, c.User.ID) { - c.SetDeleted() + if !isAdmin { + c.SetDeleted() + } else { + c.Text += "\n\n*Blocked, visible for admins only*" + } c.User.Blocked = true }