From 753d79d6bbabfdac33c6c382717fe0acaec2a3bd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 11 Oct 2017 12:47:02 +0300 Subject: telegram: do not duplicate subscription requests --- juick-server-core/src/main/java/com/juick/service/TagService.java | 3 +++ .../src/main/java/com/juick/service/TelegramService.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'juick-server-core/src/main/java') diff --git a/juick-server-core/src/main/java/com/juick/service/TagService.java b/juick-server-core/src/main/java/com/juick/service/TagService.java index b59acd0b..e24cf928 100644 --- a/juick-server-core/src/main/java/com/juick/service/TagService.java +++ b/juick-server-core/src/main/java/com/juick/service/TagService.java @@ -18,6 +18,7 @@ package com.juick.service; import com.juick.Tag; +import com.juick.User; import com.juick.server.helpers.TagStats; import java.util.Collection; @@ -51,4 +52,6 @@ public interface TagService { List getMessageTags(int mid); List getMessageTagsIDs(int mid); + + boolean blacklistTag(User user, Tag tag); } diff --git a/juick-server-core/src/main/java/com/juick/service/TelegramService.java b/juick-server-core/src/main/java/com/juick/service/TelegramService.java index 5bbcc40d..4c8ebc4b 100644 --- a/juick-server-core/src/main/java/com/juick/service/TelegramService.java +++ b/juick-server-core/src/main/java/com/juick/service/TelegramService.java @@ -17,6 +17,8 @@ package com.juick.service; +import com.juick.User; + import java.util.List; /** @@ -33,7 +35,5 @@ public interface TelegramService { boolean deleteTelegramUser(Integer uid); - List getSubscribers(int uid); - - List getSubscribersToComments(int mid, int ignore_uid); + List getTelegramIdentifiers(List users); } -- cgit v1.2.3