aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-12 12:48:11 +0300
committerGravatar Vitaly Takmazov2023-01-12 12:48:11 +0300
commit109173a39c601a9ea9b9642c6e8154c98cc9bee5 (patch)
tree6e3bde8366f4b14ecb5d3ccfbb57a9652f3bf25d /src
parente377357b00cdb151aa20d96a0ce7a5f1a8bbe9c9 (diff)
Telegram: fix recommendations markup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/TelegramBotManager.java6
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()));
}