aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-03-10 21:22:03 +0300
committerGravatar Vitaly Takmazov2017-03-10 21:22:03 +0300
commit89f42d8103a4382a7d9bacbb8db57c65cdd57f8c (patch)
tree4c28e695465941545ad669f2008f3a7c717521cb
parent64bf33c905e069bd9171198998c82159b3b07904 (diff)
juick-api: fix daysback
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Messages.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
index 3e0f52c3..76bbb5be 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
@@ -92,7 +92,7 @@ public class Messages {
}
} else if (!StringUtils.isEmpty(withrecommended)) {
mids = messagesService.getUserBlogWithRecommendations(user.getUid(), 0, before);
- } else if (!StringUtils.isEmpty(daysback)) {
+ } else if (daysback > 0) {
mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback);
} else {
mids = messagesService.getUserBlog(user.getUid(), 0, before);