don't change comment text for blocked in admin view

This commit is contained in:
Umputun
2018-03-18 18:25:00 -05:00
parent 244056f978
commit feb2dc3ef5
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -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
}
+3
View File
@@ -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/