mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-09 11:53:04 +02:00
Regression: Embeds belong in quotes
This commit is contained in:
parent
53baeb5df7
commit
49a135485c
2 changed files with 17 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue