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.
This commit is contained in:
Jannis Braun
2026-03-26 06:37:26 +01:00
parent ee8abc1022
commit 4ed9b30ce9
+1 -1
View File
@@ -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,
})