From feb2dc3ef588d5e9e282aac08775c66f050c93a8 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 18 Mar 2018 18:25:00 -0500 Subject: [PATCH] don't change comment text for blocked in admin view --- app/rest/api/admin.go | 4 +--- remark.rest | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/rest/api/admin.go b/app/rest/api/admin.go index 2b050419..d916b832 100644 --- a/app/rest/api/admin.go +++ b/app/rest/api/admin.go @@ -138,10 +138,8 @@ func (a *admin) alterComments(comments []store.Comment, r *http.Request) (res [] // process blocked users if a.dataService.IsBlocked(c.Locator.SiteID, c.User.ID) { - if !isAdmin { + if !isAdmin { // reset comment to deleted for non-admins c.SetDeleted() - } else { - c.Text += "\n\n*Blocked, visible for admins only*" } c.User.Blocked = true } diff --git a/remark.rest b/remark.rest index 6edfa5c4..e5eb07b7 100644 --- a/remark.rest +++ b/remark.rest @@ -59,6 +59,9 @@ GET {{host}}/api/v1/id/a2ddb8d2f65008ee1a1e3af8df0f26beb042309c?site=remark&url= ### get comment by user id GET {{host}}/api/v1/comments?site=remark&user=disqus_umputun +### get comment by user id2 +GET {{host}}/api/v1/comments?site=remark&user=disqus_kpmy + ### get count GET {{host}}/api/v1/count?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/