diff --git a/backend/src/plugins/Starboard/util/saveMessageToStarboard.ts b/backend/src/plugins/Starboard/util/saveMessageToStarboard.ts index bdd9339b..5d67307b 100644 --- a/backend/src/plugins/Starboard/util/saveMessageToStarboard.ts +++ b/backend/src/plugins/Starboard/util/saveMessageToStarboard.ts @@ -28,7 +28,9 @@ export async function saveMessageToStarboard( embed.author.icon_url = msg.author.avatarURL; } - if (msg.content) { + // The second condition here checks for messages with only an image link that is then embedded. + // The message content in that case is hidden by the Discord client, so we hide it here too. + if (msg.content && msg.embeds[0]?.thumbnail?.url !== msg.content) { embed.description = msg.content; }