From 109173a39c601a9ea9b9642c6e8154c98cc9bee5 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 12 Jan 2023 12:48:11 +0300
Subject: Telegram: fix recommendations markup
---
src/main/java/com/juick/TelegramBotManager.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'src/main/java')
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 post",
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 post",
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 post became popular!",
formatUrl(message)), new com.juick.model.Message()));
}
--
cgit v1.2.3