aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-03-08 16:24:44 +0700
committerGravatar Ugnich Anton2014-03-08 16:24:44 +0700
commita573191fa752c0d9155f1c9f0d8a89f044c7af7a (patch)
treefba8e1c3789834ece07fdc663ae32f00f47b0490 /src/java
parent7f6931ae1cc26dfd1d60c0884f8633ea2c81ab0e (diff)
redirect /?show=top
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/juick/http/www/Home.java5
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);