Reports and statistics answer in ClientModels' shapes
The moderators' reports and the admin statistics (overview, hosts, crawler) were anonymous objects, so a client could read them only as loose JSON. They are now ViewReport, ViewStatisticsOverview, ViewHostsPage and ViewCrawler in PrivaPub.ClientModels, with the same JSON as before, for decePub's Administration page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
b146e182c6
commit
ea5e607779
4 files changed
+145
-26
No files matched your search
@@ -0,0 +1,20 @@
|
||||
namespace PrivaPub.ClientModels.Admin
|
||||
{
|
||||
// a report as moderators read it: who sent it ("local" for a persona here, never which one; or the remote actor), whom
|
||||
// and which posts it is about, and whether it was resolved
|
||||
public class ViewReport
|
||||
{
|
||||
public string ID { get; set; }
|
||||
public string Reporter { get; set; }
|
||||
public string TargetAccountId { get; set; }
|
||||
public string TargetActorURI { get; set; }
|
||||
public List<string> PostIds { get; set; } = new();
|
||||
public List<string> ObjectURIs { get; set; } = new();
|
||||
public string Category { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public bool Forwarded { get; set; }
|
||||
public bool IsResolved { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime? ResolvedAt { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user