aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java
diff options
context:
space:
mode:
authorGravatar Evgeniy Shishkin2017-03-09 16:25:30 +0300
committerGravatar Evgeniy Shishkin2017-03-09 16:25:30 +0300
commit779024f65c14436b48e015eaaef0f4956bd5aa8a (patch)
tree3b095ac01c55149e484f51f6cc901470b33ccedc /juick-api/src/main/java
parent35534495110bb044d548b7c0d7607e252470e462 (diff)
timehop api
Diffstat (limited to 'juick-api/src/main/java')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Messages.java3
1 files changed, 3 insertions, 0 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 7348c54a..5863ec5f 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
@@ -69,6 +69,7 @@ public class Messages {
public ResponseEntity<List<com.juick.Message>> getMessages(
@RequestParam(required = false) String uname,
@RequestParam(defaultValue = "0") int before_mid,
+ @RequestParam(required = false, defaultValue = "0") int daysback,
@RequestParam(required = false) String withrecommended,
@RequestParam(required = false) String popular,
@RequestParam(required = false) String media,
@@ -91,6 +92,8 @@ public class Messages {
}
} else if (!StringUtils.isEmpty(withrecommended)) {
mids = messagesService.getUserBlogWithRecommendations(user.getUid(), 0, before_mid);
+ } else if (!StringUtils.isEmpty(daysback)) {
+ mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback);
} else {
mids = messagesService.getUserBlog(user.getUid(), 0, before_mid);
}