From 5759e0df3668c5780bc19ae321ee6c7c7d9d4c5d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Nov 2024 15:13:57 +0300 Subject: formatMessage: do not send anchor links to Telegram --- src/main/java/com/juick/util/MessageUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick') 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 // /12 - msg = msg.replaceAll(replyNumberRegex, "$1/$2$3"); - + if (!compatibleWithDurov) { + msg = msg.replaceAll(replyNumberRegex, "$1/$2$3"); + } // @username@mastodon.social // @username@mastodon.social -- cgit v1.2.3