R5 the server's own settings in decePub: instance, rules, announcements, relays, media limits, the staff's log, About
Build / Build (push) Successful in 1m5s
Build / Build (push) Successful in 1m5s
Administration's Pleroma placeholders give way to real sections: Instance (title, descriptions, contact, thumbnail, privacy policy, terms, the weekly activity), Rules, Announcements, Relays, Media limits and the Moderation log, next to Reports, blocked servers (now published or obfuscated), statistics and backups; moderators see Reports and the log. Every save sends the whole settings form built from the latest read, since PrivaPub replaces what it carries. /about shows the server's documents to anyone. The report dialog picks the rules a violation breaks, and reports show them. Announcements show above the feed tabs, dismissed and reacted to, live from the user stream. Login names the server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WpVCoDeM1qUTRp4fXQdfof
This commit is contained in:
1 parent
b8d7858acb
commit
4c88980374
33 files changed
+3743
-239
No files matched your search
@@ -286,10 +286,11 @@ namespace decePubClient.Services
|
||||
return response.IsSuccessStatusCode ? new WebResult() : await response.Content.ReadWebResult(response.StatusCode, localizer, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>Reports an account, with the posts named, to the persona's server's moderators; forwarded, its own server
|
||||
/// gets the report too, from PrivaPub's actor and never naming the persona.</summary>
|
||||
public async Task<WebResult> Report(string accountId, List<string> statusIds, string comment, ReportCategory category, bool forward,
|
||||
CancellationToken cancellationToken = default)
|
||||
/// <summary>Reports an account, with the posts named, to the persona's server's moderators (a violation with the
|
||||
/// server's rules it breaks); forwarded, its own server gets the report too, from PrivaPub's actor and never naming
|
||||
/// the persona.</summary>
|
||||
public async Task<WebResult> Report(string accountId, List<string> statusIds, string comment, ReportCategory category, List<string> ruleIds,
|
||||
bool forward, CancellationToken cancellationToken = default)
|
||||
{
|
||||
using var response = await httpService.Post(APIs.Mastodon.POST_Reports, new ReportRequest
|
||||
{
|
||||
@@ -297,6 +298,7 @@ namespace decePubClient.Services
|
||||
StatusIds = statusIds,
|
||||
Comment = comment?.Trim(),
|
||||
Category = category.ToString().ToLowerInvariant(),
|
||||
RuleIds = category is ReportCategory.Violation ? ruleIds : [],
|
||||
Forward = forward
|
||||
}, cancellationToken: cancellationToken);
|
||||
return response.IsSuccessStatusCode ? new WebResult() : await response.Content.ReadWebResult(response.StatusCode, localizer, cancellationToken);
|
||||
|
||||
Reference in new issue
Block a user