From f44ace24c2665eefb6da3f4d7fddef2f0203674d Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 23 Aug 2026 17:30:42 +0200 Subject: [PATCH] Ingest cloud attachment meta --- src/api/util/handlers/Message.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 78bab924d..dd158bbae 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -663,13 +663,20 @@ export async function convertCloudAttachmentToAttachment(cAtt: MessageCreateClou const cloneRespBody = (await cloneResponse.json()) as { success: boolean; new_path: string }; const realAtt = Attachment.create({ + channel_id: destinationChannelId, + message_id: destinationMessageId, + filename: attEnt.userFilename, size: attEnt.size, height: attEnt.height, width: attEnt.width, content_type: attEnt.contentType || attEnt.userOriginalContentType, - channel_id: destinationChannelId, - message_id: destinationMessageId, + + title: cAtt.title, + duration_secs: cAtt.duration_secs, + clip_created_at: cAtt.clip_created_at, + description: cAtt.description, + waveform: cAtt.waveform, }); console.log("[Message] Converted cloud attachment to", realAtt); return realAtt;