diff options
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/http/www/Home.java | 4 |
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 89d4005f9..d5c1bb7b6 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; |