diff options
author | Vitaly Takmazov | 2023-01-12 12:48:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-12 12:48:11 +0300 |
commit | 109173a39c601a9ea9b9642c6e8154c98cc9bee5 (patch) | |
tree | 6e3bde8366f4b14ecb5d3ccfbb57a9652f3bf25d | |
parent | e377357b00cdb151aa20d96a0ce7a5f1a8bbe9c9 (diff) |
Telegram: fix recommendations markup
-rw-r--r-- | src/main/java/com/juick/TelegramBotManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/TelegramBotManager.java b/src/main/java/com/juick/TelegramBotManager.java index 6a150bef..3ca0f217 100644 --- a/src/main/java/com/juick/TelegramBotManager.java +++ b/src/main/java/com/juick/TelegramBotManager.java @@ -457,11 +457,11 @@ public class TelegramBotManager implements NotificationListener { logger.info("Like received in tg listener"); if (!userService.isInBLAny(message.getUser().getUid(), liker.getUid())) { telegramService.getTelegramIdentifiers(Collections.singletonList(message.getUser())) - .forEach(c -> telegramNotify(c, String.format("%s recommends your [post](%s)", + .forEach(c -> telegramNotify(c, String.format("%s recommends your <a href='%s'>post</a>", MessageUtils.getUserHtmlLink(liker, webDomain), formatUrl(message)), new com.juick.model.Message())); } telegramService.getTelegramIdentifiers(subscribers) - .forEach(c -> telegramNotify(c, String.format("%s recommends you someone's [post](%s)", + .forEach(c -> telegramNotify(c, String.format("%s recommends you someone's <a href='%s'>post</a>", MessageUtils.getUserHtmlLink(liker, webDomain), formatUrl(message)), new com.juick.model.Message())); } @@ -473,7 +473,7 @@ public class TelegramBotManager implements NotificationListener { private void processTop(com.juick.model.Message message) { telegramNotify(topChannelName, formatTelegramMessage(message), message); telegramService.getTelegramIdentifiers(Collections.singletonList(message.getUser())) - .forEach(c -> telegramNotify(c, String.format("Your [post](%s) became popular!", + .forEach(c -> telegramNotify(c, String.format("Your <a href='%s'>post</a> became popular!", formatUrl(message)), new com.juick.model.Message())); } |