aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r--src/main/java/com/juick/http/www/Home.java8
1 files 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) {