diff options
author | Vitaly Takmazov | 2018-10-23 14:38:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-23 14:38:54 +0300 |
commit | 09d0533511faee6ab2da2fd6db79eb0063fd429e (patch) | |
tree | 0d2313f626ff4cdc2a4330caf9dc2020d8aa10d0 /juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java | |
parent | 2ec703610f07225ce2f82481aa736b6dca21e2d2 (diff) |
Do not use subscribed users jid
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java b/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java index 2032576c..5ce3593b 100644 --- a/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java @@ -53,18 +53,6 @@ public class SubscriptionServiceImpl extends BaseJdbcService implements Subscrip @Transactional(readOnly = true) @Override - public List<String> getJIDSubscribedToUser(final int uid, final boolean friendsonly) { - return getNamedParameterJdbcTemplate().queryForList( - "SELECT jids.jid FROM subscr_users INNER JOIN jids " + - "ON (subscr_users.user_id = :uid AND subscr_users.suser_id = jids.user_id) WHERE jids.active = 1 " + - (friendsonly ? - " AND EXISTS (SELECT 1 FROM wl_users w WHERE w.user_id = :uid and jids.user_id = w.wl_user_id)" : StringUtils.EMPTY), - new MapSqlParameterSource("uid", uid), - String.class); - } - - @Transactional(readOnly = true) - @Override public List<User> getSubscribedUsers(final int uid, final Message msg) { int mid = msg.getMid(); User author = messagesService.getMessageAuthor(mid); |