From 02d62c091442aa5eae39870922ec0753448a4866 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Fri, 30 Jan 2026 13:58:29 +1300 Subject: [PATCH] Only show video embeds when they have extra info --- src/d2m/converters/message-to-event.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/d2m/converters/message-to-event.js b/src/d2m/converters/message-to-event.js index 7329f4a..ffce2f0 100644 --- a/src/d2m/converters/message-to-event.js +++ b/src/d2m/converters/message-to-event.js @@ -773,8 +773,12 @@ async function messageToEvent(message, guild, options = {}, di) { continue // Matrix's own URL previews are fine for images. } + if (embed.type === "video" && !embed.title && !embed.description && message.content.includes(embed.video?.url)) { + continue // Doesn't add extra information and the direct video URL is already there. + } + if (embed.type === "poll_result") { - // The code here is only for the message to be bridged to Matrix. Dealing with the Discord-side updates is in actions/poll-close.js. + // The code here is only for the message to be bridged to Matrix. Dealing with the Discord-side updates is in d2m/actions/poll-end.js. } if (embed.url?.startsWith("https://discord.com/")) {