don't change comment text for blocked in admin view
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user