aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-11-10 15:13:57 +0300
committerGravatar Vitaly Takmazov2024-11-10 15:13:57 +0300
commit5759e0df3668c5780bc19ae321ee6c7c7d9d4c5d (patch)
treef6a2fa35b17247e1dbd4b7ddfeba8b40cbb802b1 /src/main/java
parent797c2bbfcdfda9f37c515d8941911da63f3e90d3 (diff)
formatMessage: do not send anchor links to TelegramHEADmaster
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/util/MessageUtils.java5
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>