fix(backend): return report context in mod api
This commit is contained in:
parent
3f0edc4374
commit
5077bd6a0b
2 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ public record ReportResponse(
|
||||||
PartialMember? TargetMember,
|
PartialMember? TargetMember,
|
||||||
ReportStatus Status,
|
ReportStatus Status,
|
||||||
ReportReason Reason,
|
ReportReason Reason,
|
||||||
|
string? Context,
|
||||||
ReportTargetType TargetType,
|
ReportTargetType TargetType,
|
||||||
JObject? Snapshot
|
JObject? Snapshot
|
||||||
);
|
);
|
||||||
|
|
|
@ -36,6 +36,7 @@ public class ModerationRendererService(
|
||||||
: null,
|
: null,
|
||||||
report.Status,
|
report.Status,
|
||||||
report.Reason,
|
report.Reason,
|
||||||
|
report.Context,
|
||||||
report.TargetType,
|
report.TargetType,
|
||||||
report.TargetSnapshot != null
|
report.TargetSnapshot != null
|
||||||
? JsonConvert.DeserializeObject<JObject>(report.TargetSnapshot)
|
? JsonConvert.DeserializeObject<JObject>(report.TargetSnapshot)
|
||||||
|
|
Loading…
Reference in a new issue