From 3e48ba7c9cae9027b0a045aa25ae40b533518865 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 6 Jul 2016 13:53:46 +0300 Subject: update deps --- deps/com.juick.server | 2 +- src/main/java/com/juick/http/www/Home.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/com.juick.server b/deps/com.juick.server index 8d05498f..27346668 160000 --- a/deps/com.juick.server +++ b/deps/com.juick.server @@ -1 +1 @@ -Subproject commit 8d05498fa4dd8891dbccd04c99030655eea17fec +Subproject commit 27346668c2f984c3aab66c1f2716af814305be9b diff --git a/src/main/java/com/juick/http/www/Home.java b/src/main/java/com/juick/http/www/Home.java index 8dc3e70c..d60e871d 100644 --- a/src/main/java/com/juick/http/www/Home.java +++ b/src/main/java/com/juick/http/www/Home.java @@ -60,10 +60,11 @@ 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; -- cgit v1.2.3