[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) {
const a = doc.createElement("a");
a.href = node.props.url;
a.textContent = node.props.url;
a.textContent = node.props.url.replace(/^https?:\/\//, '');
return a;
},