mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
Fix channel links inside lists
This commit is contained in:
parent
408475dabb
commit
7d83f114ba
2 changed files with 47 additions and 2 deletions
|
@ -412,8 +412,10 @@ async function messageToEvent(message, guild, options = {}, di) {
|
|||
node.via = await getViaServersMemo(node.row.room_id)
|
||||
}
|
||||
}
|
||||
if (Array.isArray(node.content)) {
|
||||
await transformParsedVia(node.content)
|
||||
;for (const maybeChildNodesArray of [node, node.content, node.items]) {
|
||||
if (Array.isArray(maybeChildNodesArray)) {
|
||||
await transformParsedVia(maybeChildNodesArray)
|
||||
}
|
||||
}
|
||||
}
|
||||
return parsed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue