aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-06 14:46:02 +0300
committerGravatar Vitaly Takmazov2018-02-06 14:46:02 +0300
commit61aaa45972998e9b0bcd3bd1d60a4a1a2375c6ae (patch)
tree8e0fdd5af33ac21cf8427e9bad73429e17e3872f /juick-api/src/main/java/com/juick/api/TelegramBotManager.java
parent19c8ed8a1d173ee16c5717d44b145ca365d2f6f5 (diff)
api: do not process PMs for now
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/TelegramBotManager.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
index 0273a314..c82436ed 100644
--- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
+++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
@@ -223,7 +223,7 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> {
users.forEach(c -> telegramNotify(c, msg));
// anonymous
chats.stream().filter(u -> telegramService.getUser(u) == 0).forEach(c -> telegramNotify(c, msg));
- } else {
+ } else if (jmsg.getRid() > 0) {
// get quote
com.juick.Message msg = messagesService.getReply(jmsg.getMid(), jmsg.getRid());
String fmsg = String.format("[%s](%s) %s", MSG_LINK, msgUrl, formatPost(msg, true));