fix(backend): return report context in mod api

This commit is contained in:
sam 2024-12-26 14:01:51 -05:00
parent 3f0edc4374
commit 5077bd6a0b
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ public record ReportResponse(
PartialMember? TargetMember,
ReportStatus Status,
ReportReason Reason,
string? Context,
ReportTargetType TargetType,
JObject? Snapshot
);

View file

@ -36,6 +36,7 @@ public class ModerationRendererService(
: null,
report.Status,
report.Reason,
report.Context,
report.TargetType,
report.TargetSnapshot != null
? JsonConvert.DeserializeObject<JObject>(report.TargetSnapshot)