Build / Build (push) Successful in 1m3s
A singleton ServerSettings (title, descriptions, contact, thumbnail, privacy policy, terms, rules, relays, media overrides, PublishActivity), cached by InstanceSettings and read by the instance API, NodeInfo, the instance actor, the web pages and the mailer; its defaults are the old literals, so nothing changes until an administrator edits. /clientapi/admin/settings (and /thumbnail), /announcements, /relays for administrators; /clientapi/moderator/log, the staff's log (AdminAction, written by domain blocks, backups, settings and the CLI; no IP, never a root paired with its personas). The Mastodon API's rules, extended description, privacy policy, terms of service, domain blocks (Published, Obfuscate), announcements (dismiss, reactions, streaming) and activity (only when published). Reports carry rule ids. Media overrides clamped to hard caps. Relays named by the settings reconcile next to the configured ones. Verified: interop.sh instance accounts relay with mastodon, relay, aoderelay and mailpit, 119 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WpVCoDeM1qUTRp4fXQdfof
25 lines
1.1 KiB
C#
25 lines
1.1 KiB
C#
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 List<string> RuleIds { get; set; } = [];//the server's rules it says were broken
|
|
public List<string> Rules { get; set; } = [];//their texts, in the same order (a deleted rule's too)
|
|
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; }
|
|
public DateTime? RemoteResolvedAt { get; set; }//the server holding what was reported said it dealt with it
|
|
public string RemoteResolvedBy { get; set; }
|
|
}
|
|
}
|