aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-06 13:53:46 +0300
committerGravatar Vitaly Takmazov2016-07-06 13:53:46 +0300
commit3e48ba7c9cae9027b0a045aa25ae40b533518865 (patch)
treedf3c5532a62b6b1ab8884557949ef4b43283c15f
parentb1a59f7053e152aaed33964c271c944e1c9714c2 (diff)
update deps
m---------deps/com.juick.server0
-rw-r--r--src/main/java/com/juick/http/www/Home.java3
2 files changed, 2 insertions, 1 deletions
diff --git a/deps/com.juick.server b/deps/com.juick.server
-Subproject 8d05498fa4dd8891dbccd04c99030655eea17fe
+Subproject 27346668c2f984c3aab66c1f2716af814305be9
diff --git a/src/main/java/com/juick/http/www/Home.java b/src/main/java/com/juick/http/www/Home.java
index 8dc3e70c..d60e871d 100644
--- a/src/main/java/com/juick/http/www/Home.java
+++ b/src/main/java/com/juick/http/www/Home.java
@@ -60,10 +60,11 @@ public class Home {
} else if (paramShow == null) {
if (visitor != null) {
title = "Популярные";
+ mids = MessagesQueries.getPopular(sql, visitor.getUID(), paramBefore);
} else {
title = "Микроблоги Juick: популярные записи";
+ mids = MessagesQueries.getPopular(sql, 0, paramBefore);
}
- mids = MessagesQueries.getPopular(sql, paramBefore);
} else if (paramShow.equals("top")) {
Utils.sendPermanentRedirect(response, "/");
return;