[backend] Format urls in outgoing AP messages properly

This commit is contained in:
Laura Hausmann 2023-10-12 15:57:32 +02:00
parent 19f8c0aafc
commit 8c93f7eb68
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -157,7 +157,7 @@ export function toHtml(
url(node) { url(node) {
const a = doc.createElement("a"); const a = doc.createElement("a");
a.href = node.props.url; a.href = node.props.url;
a.textContent = node.props.url; a.textContent = node.props.url.replace(/^https?:\/\//, '');
return a; return a;
}, },