aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------deps/com.juick.server10
-rw-r--r--src/main/java/com/juick/http/www/Home.java4
2 files changed, 8 insertions, 6 deletions
diff --git a/deps/com.juick.server b/deps/com.juick.server
-Subproject 67d53fe24081ade138b5d9756fd835575eb4ae7
+Subproject a0d038f5e6aa28ef67162c591abe64d057a19fa
diff --git a/src/main/java/com/juick/http/www/Home.java b/src/main/java/com/juick/http/www/Home.java
index 89d4005f..d5c1bb7b 100644
--- a/src/main/java/com/juick/http/www/Home.java
+++ b/src/main/java/com/juick/http/www/Home.java
@@ -62,10 +62,12 @@ 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;