fix: fix ui reports
This commit is contained in:
@@ -84,6 +84,13 @@ type AdminReport struct {
|
||||
ReporterHandle *string `json:"reporter_handle"`
|
||||
ReporterName *string `json:"reporter_name"`
|
||||
|
||||
// ResolutionNote is the admin's note left when resolving (nil while open).
|
||||
ResolutionNote *string `json:"resolution_note"`
|
||||
// TargetRemoved is true when the reported content is currently removed —
|
||||
// a soft-deleted post/comment, or a banned account — so the UI can offer
|
||||
// "Undo" instead of "Delete"/"Ban".
|
||||
TargetRemoved bool `json:"target_removed"`
|
||||
|
||||
// Target of the report. TargetID is the post/comment/user id; TargetText
|
||||
// is the post caption, comment body, or reported user's handle so the
|
||||
// admin sees what was flagged without a second fetch. TargetAuthorHandle
|
||||
|
||||
Reference in New Issue
Block a user