From: Ajay Bura <32841439+ajbura@users.noreply.github.com>
Date: Sun, 8 Sep 2024 12:53:59 +0000 (+1000)
Subject: fix mention url is encoded wrong (#1936)
X-Git-Tag: v4.2.0~6
X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=4dfce32730137c319c646d24293216a31d39da43;p=rainny.git
fix mention url is encoded wrong (#1936)
---
diff --git a/src/app/components/editor/output.ts b/src/app/components/editor/output.ts
index 864aee3..d6136d9 100644
--- a/src/app/components/editor/output.ts
+++ b/src/app/components/editor/output.ts
@@ -62,7 +62,7 @@ const elementToCustomHtml = (node: CustomElement, children: string): string => {
}
const matrixTo = `https://matrix.to/#/${fragment}`;
- return `${sanitizeText(node.name)}`;
+ return `${sanitizeText(node.name)}`;
}
case BlockType.Emoticon:
return node.key.startsWith('mxc://')
@@ -71,7 +71,7 @@ const elementToCustomHtml = (node: CustomElement, children: string): string => {
)}" title="${sanitizeText(node.shortcode)}" height="32" />`
: sanitizeText(node.key);
case BlockType.Link:
- return `${node.children}`;
+ return `${node.children}`;
case BlockType.Command:
return `/${sanitizeText(node.command)}`;
default: