From 4ed9b30ce9d429bdaf59fc23be3b17e57a323434 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Thu, 26 Mar 2026 06:37:26 +0100 Subject: [PATCH] fix(federation): don't copy source thumbnail filename to relay attachments The source instance's thumbnail file doesn't exist locally, so copying its thumbnailFilename causes a 404 in the chat view. Set to null so AttachmentRenderer falls back to the full image URL. --- packages/server/src/routes/federation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/routes/federation.ts b/packages/server/src/routes/federation.ts index 75448cee..36e44495 100644 --- a/packages/server/src/routes/federation.ts +++ b/packages/server/src/routes/federation.ts @@ -1053,7 +1053,7 @@ function processCreateEvent( width: attachment.width ?? null, height: attachment.height ?? null, duration: attachment.duration ?? null, - thumbnailFilename: attachment.thumbnailFilename ?? null, + thumbnailFilename: null, // Don't copy source thumbnail — it doesn't exist locally sourceUrl: attachment.sourceUrl, createdAt: now, })