fix(federation): resolve code review issues in upload size mismatch

- Fix critical: outbox worker now copies file_rejected payload fields
  (attachmentId, sourceFilename, rejectionReason, rejectionLimit,
  affectedUserIds) so the reverse relay actually delivers them
- Fix: add sourceFilename to file_rejected event for reliable
  multi-attachment matching on the sender side
- Fix: change text-accent-warning to text-accent-amber (valid class)
- Add Array.isArray guard on federationMeta parse
This commit is contained in:
Jannis Braun
2026-03-27 04:51:30 +01:00
parent 589af25b45
commit ceb0c9812d
4 changed files with 20 additions and 9 deletions
+1
View File
@@ -770,6 +770,7 @@ export interface FederationRelayEvent {
friendship?: FederationFriendshipPayload;
// file_rejected event fields
attachmentId?: string;
sourceFilename?: string;
rejectionReason?: string;
rejectionLimit?: number;
affectedUserIds?: string[];