Regression: Embeds belong in quotes

This commit is contained in:
Cadence Ember 2023-10-02 22:26:00 +13:00
commit 49a135485c
2 changed files with 17 additions and 16 deletions

View file

@ -390,9 +390,10 @@ async function messageToEvent(message, guild, options = {}, di) {
}
if (embed.footer?.text) repParagraphs.push(`${embed.footer.text}`)
const repContent = repParagraphs.join("\n\n")
const repContentQuoted = repContent.split("\n").map(l => "> " + l).join("\n")
// Send as m.notice to apply the usual automated/subtle appearance, showing this wasn't actually typed by the person
await addTextEvent(repContent, "m.notice", {scanMentions: false})
await addTextEvent(repContentQuoted, "m.notice", {scanMentions: false})
}
// Then stickers