aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-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 6a150bef1..3ca0f217d 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()));
}