From 89f42d8103a4382a7d9bacbb8db57c65cdd57f8c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 10 Mar 2017 21:22:03 +0300 Subject: juick-api: fix daysback --- juick-api/src/main/java/com/juick/api/controllers/Messages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3