feat(federation): schema for outbound peering gate (direction column, subscribers, notifications)

This commit is contained in:
Jannis Braun
2026-04-26 21:02:27 +02:00
parent c65ff245bd
commit b687bfe721
6 changed files with 3549 additions and 3 deletions
@@ -452,6 +452,13 @@ export async function cleanupExpiredApprovalRequests(): Promise<number> {
let cleaned = 0;
for (const req of expired) {
// Outbound rows have no hmac_secret and no remote /peer/denied endpoint;
// their expiry handling (subscriber notifications) lands in Task 9.
// Until then, skip outbound rows here so this loop only processes inbound expirations.
if (!req.hmacSecret) {
continue;
}
const denialBody = JSON.stringify({
origin: ourOrigin,
reason: 'expired' as const,