diff options
Diffstat (limited to 'src/java/com/juick/http/www/Home.java')
-rw-r--r-- | src/java/com/juick/http/www/Home.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java index 86f1ee26..a49c2a53 100644 --- a/src/java/com/juick/http/www/Home.java +++ b/src/java/com/juick/http/www/Home.java @@ -56,13 +56,16 @@ public class Home { if (paramSearch != null) { title = "Поиск: " + Utils.encodeHTML(paramSearch); mids = MessagesQueries.getSearch(sql, sqlSearch, Utils.encodeSphinx(paramSearch), paramBefore); - } else if (paramShow == null || paramShow.equals("top")) { + } else if (paramShow == null) { if (visitor != null) { title = "Популярные"; } else { title = "Микроблоги Juick: популярные записи"; } mids = MessagesQueries.getPopular(sql, paramBefore); + } else if (paramShow.equals("top")) { + Utils.sendPermanentRedirect(response, "/"); + return; } else if (paramShow.equals("my") && visitor != null) { title = "Моя лента"; mids = MessagesQueries.getMyFeed(sql, visitor.UID, paramBefore); |