diff options
author | Vitaly Takmazov | 2024-11-10 15:13:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-11-10 15:13:57 +0300 |
commit | 5759e0df3668c5780bc19ae321ee6c7c7d9d4c5d (patch) | |
tree | f6a2fa35b17247e1dbd4b7ddfeba8b40cbb802b1 | |
parent | 797c2bbfcdfda9f37c515d8941911da63f3e90d3 (diff) |
-rw-r--r-- | src/main/java/com/juick/util/MessageUtils.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index 5418ae64..ee6ff772 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -198,8 +198,9 @@ public class MessageUtils { // /12 // <a href="#12">/12</a> - msg = msg.replaceAll(replyNumberRegex, "$1<a href=\"#$2\">/$2</a>$3"); - + if (!compatibleWithDurov) { + msg = msg.replaceAll(replyNumberRegex, "$1<a href=\"#$2\">/$2</a>$3"); + } // @username@mastodon.social // <a href="http://juick.com/mention?username=username@mastodon.social/">@username@mastodon.social</a> |