aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-11 12:47:02 +0300
committerGravatar Vitaly Takmazov2017-10-11 12:47:02 +0300
commit753d79d6bbabfdac33c6c382717fe0acaec2a3bd (patch)
tree006a2b957d4a599315d1472ae1d4f7e726136ee2 /juick-server-core
parent0ad4b98456e5de96a9fea6e128a20a4624c72c6a (diff)
telegram: do not duplicate subscription requests
Diffstat (limited to 'juick-server-core')
-rw-r--r--juick-server-core/src/main/java/com/juick/service/TagService.java3
-rw-r--r--juick-server-core/src/main/java/com/juick/service/TelegramService.java6
2 files changed, 6 insertions, 3 deletions
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<TagStats> getMessageTags(int mid);
List<Integer> 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<Long> getSubscribers(int uid);
-
- List<Long> getSubscribersToComments(int mid, int ignore_uid);
+ List<Long> getTelegramIdentifiers(List<User> users);
}