diff options
author | Vitaly Takmazov | 2018-01-18 14:56:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-18 14:56:36 +0300 |
commit | e1aed221ca65978f67cdb205e603cfb3178a186f (patch) | |
tree | 9013f9330322a12ee4e3d5195896dc386c74290d /juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java | |
parent | fb5acff652f55a97b842c01de1b273c5da4a3f2f (diff) |
top: fix candidates query
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java index c4eb67db..2497e94a 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -883,6 +883,6 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ "INNER JOIN messages ON messages.message_id = favorites.message_id " + "LEFT JOIN messages_tags ON messages_tags.message_id = messages.message_id " + "WHERE COALESCE(messages_tags.tag_id, 0) != 2 AND favorites.ts > DATE_ADD(NOW(), INTERVAL -2 HOUR) " + - "GROUP BY message_id HAVING COUNT(DISTINCT favorites.user_id) > 1;", Integer.class); + "AND messages.popular=0 GROUP BY message_id HAVING COUNT(DISTINCT favorites.user_id) > 1;", Integer.class); } } |