aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-17 12:26:23 +0300
committerGravatar Vitaly Takmazov2018-04-21 08:21:03 +0300
commit6dc2dccddbcd8a83a757e6131bf08590265d1bec (patch)
treefe6b50baede8005eda616d3056ae9dcd7978e3a1 /juick-server-jdbc/src
parent1e5b4767af398358c5d30fe5b315484220ec677d (diff)
www: reduce tags cloud and its layout
Diffstat (limited to 'juick-server-jdbc/src')
-rw-r--r--juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java
index 63e07bd2..0e371ab5 100644
--- a/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java
+++ b/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java
@@ -175,9 +175,7 @@ public class TagServiceImpl extends BaseJdbcService implements TagService {
@Override
public List<String> getPopularTags() {
return getJdbcTemplate().queryForList(
- "SELECT name FROM tags WHERE top=1 ORDER BY name ASC", String.class)
- .stream()
- .collect(Collectors.toList());
+ "select name from tags where noindex=0 order by stat_messages desc limit 20", String.class);
}
@Transactional(readOnly = true)