aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-07 10:22:34 +0300
committerGravatar Vitaly Takmazov2016-07-07 10:22:34 +0300
commitc4f9f29274ab9700272ba1064d05ccf7eefe91e2 (patch)
tree785fb87174c0f05018402cf14d58e33d682c9fb9 /src/main/java/com/juick/http/www
parenta33e6c3926b41a29a5828677cbad265f7c503d57 (diff)
filter top and photos by bl_users
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r--src/main/java/com/juick/http/www/Home.java4
1 files changed, 3 insertions, 1 deletions
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;