From d0920d0d1b1abb3f6c8374734c6420fbdcb0be78 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 24 Oct 2015 22:06:41 +0300 Subject: photos for visitors --- src/main/java/com/juick/http/www/Home.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/juick/http/www/Home.java b/src/main/java/com/juick/http/www/Home.java index 27a63574..20752a40 100644 --- a/src/main/java/com/juick/http/www/Home.java +++ b/src/main/java/com/juick/http/www/Home.java @@ -78,9 +78,13 @@ public class Home { } else if (paramShow.equals("recommended") && visitor != null) { title = "Рекомендации"; mids = MessagesQueries.getRecommended(sql, visitor.UID, paramBefore); - } else if (paramShow.equals("photos") && visitor != null) { + } else if (paramShow.equals("photos")) { title = "Фотографии"; - mids = MessagesQueries.getPhotos(sql, visitor.UID, paramBefore); + if (visitor != null) { + mids = MessagesQueries.getPhotos(sql, visitor.UID, paramBefore); + } else { + mids = MessagesQueries.getPhotos(sql, 0, paramBefore); + } } else if (paramShow.equals("all")) { title = "Все сообщения"; if (visitor != null) { -- cgit v1.2.3