feat: report page, take action on reports
This commit is contained in:
parent
a0ba712632
commit
cacd3a30b7
14 changed files with 502 additions and 14 deletions
|
@ -154,6 +154,12 @@ public class ModerationService(
|
|||
target.DeletedAt = clock.GetCurrentInstant();
|
||||
target.DeletedBy = moderator.Id;
|
||||
|
||||
if (report != null)
|
||||
{
|
||||
report.Status = ReportStatus.Closed;
|
||||
db.Update(report);
|
||||
}
|
||||
|
||||
if (!clearProfile)
|
||||
{
|
||||
db.Update(target);
|
||||
|
@ -334,6 +340,12 @@ public class ModerationService(
|
|||
db.Update(targetUser);
|
||||
}
|
||||
|
||||
if (report != null)
|
||||
{
|
||||
report.Status = ReportStatus.Closed;
|
||||
db.Update(report);
|
||||
}
|
||||
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
return entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue