diff options
author | 2023-01-23 13:14:21 +0100 | |
---|---|---|
committer | 2023-01-23 13:14:21 +0100 | |
commit | e9747247d58a0423d5e40fda5c5b37b4b4526495 (patch) | |
tree | 5574b05f1dec1ad88c49b9891f1e54719f1b9eb1 /internal/api/model/admin.go | |
parent | [chore] bump go version to 1.19.5 (#1377) (diff) | |
download | gotosocial-e9747247d58a0423d5e40fda5c5b37b4b4526495.tar.xz |
[feature] Implement `/api/v1/reports` endpoints on client API (#1330)
* start adding report client api
* route + test reports get
* start report create endpoint
* you can create reports now babyy
* stub account report processor
* add single reportGet endpoint
* fix test
* add more filtering params to /api/v1/reports GET
* update swagger
* use marshalIndent in tests
* add + test missing Link info
Diffstat (limited to 'internal/api/model/admin.go')
-rw-r--r-- | internal/api/model/admin.go | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/internal/api/model/admin.go b/internal/api/model/admin.go index 436dce390..edef0d52b 100644 --- a/internal/api/model/admin.go +++ b/internal/api/model/admin.go @@ -58,26 +58,7 @@ type AdminAccountInfo struct { // AdminReportInfo models the admin view of a report. type AdminReportInfo struct { - // The ID of the report in the database. - ID string `json:"id"` - // The action taken to resolve this report. - ActionTaken string `json:"action_taken"` - // An optional reason for reporting. - Comment string `json:"comment"` - // The time the report was filed. (ISO 8601 Datetime) - CreatedAt string `json:"created_at"` - // The time of last action on this report. (ISO 8601 Datetime) - UpdatedAt string `json:"updated_at"` - // The account which filed the report. - Account *Account `json:"account"` - // The account being reported. - TargetAccount *Account `json:"target_account"` - // The account of the moderator assigned to this report. - AssignedAccount *Account `json:"assigned_account"` - // The action taken by the moderator who handled the report. - ActionTakenByAccount string `json:"action_taken_by_account"` - // Statuses attached to the report, for context. - Statuses []Status `json:"statuses"` + Report } // AdminEmoji models the admin view of a custom emoji. |