fix: fix ui reports

This commit is contained in:
Krispire Admin
2026-06-16 19:03:06 +05:30
parent 1cde0c0544
commit a63ef672bb
6 changed files with 36 additions and 12 deletions
+7
View File
@@ -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