Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix multiple \n in md to plain text

Chocobozzz4d6952361e5b
diff --git a/server/helpers/markdown.ts b/server/helpers/markdown.ts
index 41e57d857b..ebf479b98c 100644
--- a/server/helpers/markdown.ts
+++ b/server/helpers/markdown.ts
@@ -34,7 +34,7 @@ const mdToPlainText = text => {
return safeHtml.replace(/<[^>]+>/g, '')
.replace(/\n$/, '')
- .replace('\n', ', ')
+ .replace(/\n/g, ', ')
}
// ---------------------------------------------------------------------------