fix: address code review findings (C1, I1, I2)

- C1: Include 'unreachable' peers in queueOutboxEvent query to prevent
  UNIQUE constraint violation when creating placeholders
- I1: Add 'rejected' to StatusFilter in FederationPanel so admins can
  see and manage rejected peers with delete/re-initiate actions
- I2: Map ensurePeered 'failed' to 'pending' in peer/ensure response
  to match spec and client expectations
This commit is contained in:
Jannis Braun
2026-04-09 14:08:54 +02:00
parent 7366b56fdf
commit b434a736a8
3 changed files with 7 additions and 7 deletions
@@ -138,7 +138,7 @@ export function queueOutboxEvent(
.select()
.from(schema.federationPeers)
.where(
inArray(schema.federationPeers.status, ['active', 'pending']),
inArray(schema.federationPeers.status, ['active', 'pending', 'unreachable']),
)
.all();