Attempt to set channel/message id for attachments in more places

This commit is contained in:
Rory&
2026-04-18 18:26:34 +02:00
parent e40579fe33
commit 81d44788c6
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -176,6 +176,7 @@ async function processMedia(media: UnfurledMediaItem, messageId: string, batchId
width: attEnt.width,
content_type: attEnt.contentType || attEnt.userOriginalContentType,
channel_id: channel.id,
message_id: messageId,
});
await realAtt.save();
@@ -404,6 +405,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
width: attEnt.width,
content_type: attEnt.contentType || attEnt.userOriginalContentType,
channel_id: channel.id,
message_id: message.id,
});
await realAtt.save();
return { attachment: realAtt, index: att.index };