Merge branch 'master' of github.com:umputun/remark
This commit is contained in:
@@ -211,7 +211,13 @@ Sort can be `time` or `score`. Supported sort order with prefix -/+, i.e. `-time
|
||||
|
||||
- `DELETE /api/v1/admin/comment/{id}?site=site-id&url=post-url` - delete comment by `id`.
|
||||
- `PUT /api/v1/admin/user/{userid}?site=site-id&block=1` - block or unblock user.
|
||||
- `GET api/v1/admin/blocked` - list of blocked user ids.
|
||||
- `GET api/v1/admin/blocked&site=site-id` - list of blocked user ids.
|
||||
```go
|
||||
type BlockedUser struct {
|
||||
ID string `json:"id"`
|
||||
Timestamp time.Time `json:"time"`
|
||||
}
|
||||
```
|
||||
- `GET /api/v1/admin/export?site=side-id&mode=[stream|file]` - export all comments to json stream or gz file.
|
||||
- `POST /api/v1/admin/import?site=side-id` - import comments from the backup.
|
||||
- `PUT /api/v1/admin/pin/{id}?site=site-id&url=post-url&pin=1` - pin or unpin comment.
|
||||
|
||||
Reference in New Issue
Block a user