From 0e2aab26f08a6ec4f187c1a845d0a9b0e8f4bf99 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 2 Feb 2024 14:25:46 +0300 Subject: Use
tag for quotes * fix compatibility with Mastodon --- src/main/java/com/juick/util/MessageUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index ff0641ae..a4407f17 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -228,8 +228,8 @@ public class MessageUtils { if (!compatibleWithDurov) { // > citate - msg = msg.replaceAll(citateRegex, "$1"); - msg = msg.replaceAll("", "\n"); + msg = msg.replaceAll(citateRegex, "
$1
"); + msg = msg.replaceAll("
", "\n"); msg = msg.replaceAll("\n", "
\n"); } -- cgit v1.2.3