R5 the server's own settings: instance, rules, announcements, relays, media limits, the staff's log
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
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-17 04:02:47 +02:00
1 parent f67e2ae35e
commit 70d1ffe9a2
46 files changed
+2223 -107

No files matched your search

+13 -2
View File
@@ -22,8 +22,9 @@ namespace PrivaPub.Domain.Timelines
public static readonly string[] Names = { User, UserNotification, Public, PublicLocal, PublicRemote, Hashtag, HashtagLocal, List, Direct };
// what happened: Mastodon's event name, and the id of what it is about
public sealed record Event(string Name, string Id);
// what happened: Mastodon's event name, the id of what it is about and, for some, what else the event says (an
// announcement reaction's emoji)
public sealed record Event(string Name, string Id, string Data = default);
// one stream a connection listens to: its name and, for a hashtag or a list, which one
public sealed record Key(string Name, string Parameter = default)
@@ -102,6 +103,16 @@ namespace PrivaPub.Domain.Timelines
listener.Tell(key, e);
}
// to every persona's home stream (user), as Mastodon tells its announcements: each connection maps it for its own
// persona when it sends it
public static void ToUsers(Event e)
{
var user = new Key(User);
foreach (var listener in Listeners.Keys)
if (listener.Hears(user))
listener.Tell(user, e);
}
public static bool Anyone => !Listeners.IsEmpty;
}
}