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:
@@ -1053,7 +1053,7 @@ function processCreateEvent(
|
|||||||
width: attachment.width ?? null,
|
width: attachment.width ?? null,
|
||||||
height: attachment.height ?? null,
|
height: attachment.height ?? null,
|
||||||
duration: attachment.duration ?? null,
|
duration: attachment.duration ?? null,
|
||||||
thumbnailFilename: attachment.thumbnailFilename ?? null,
|
thumbnailFilename: null, // Don't copy source thumbnail — it doesn't exist locally
|
||||||
sourceUrl: attachment.sourceUrl,
|
sourceUrl: attachment.sourceUrl,
|
||||||
createdAt: now,
|
createdAt: now,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user