aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/util
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-02-02 14:25:46 +0300
committerGravatar Vitaly Takmazov2024-02-02 14:58:56 +0300
commit0e2aab26f08a6ec4f187c1a845d0a9b0e8f4bf99 (patch)
treea8492860d3f92e5549b112e881147515ae9e1976 /src/main/java/com/juick/util
parent5ef424120ed694b1f69daeafaa1454455d13dee2 (diff)
Use <blockquote /> tag for quotes
* fix compatibility with Mastodon
Diffstat (limited to 'src/main/java/com/juick/util')
-rw-r--r--src/main/java/com/juick/util/MessageUtils.java4
1 files changed, 2 insertions, 2 deletions
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, "<q>$1</q>");
- msg = msg.replaceAll("</q><q>", "\n");
+ msg = msg.replaceAll(citateRegex, "<blockquote>$1</blockquote>");
+ msg = msg.replaceAll("</blockquote><blockquote>", "\n");
msg = msg.replaceAll("\n", "<br/>\n");
}