diff options
author | Vitaly Takmazov | 2018-02-20 11:59:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-20 11:59:02 +0300 |
commit | c5d14e9ca835cda1a0cd5dfc85ad479c081f48c3 (patch) | |
tree | 105d35c7940252bbdc59b1856c918780fce9a85c /juick-server | |
parent | 513a7dec3eb5b1edd25f1414097126a22071e33b (diff) |
api: fix rss views
Diffstat (limited to 'juick-server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/rss/Feeds.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java b/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java index 51c32cac..a2d44500 100644 --- a/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java +++ b/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java @@ -48,7 +48,7 @@ public class Feeds { if (user.getUid() > 0) { List<Integer> mids = messagesService.getUserBlog(user.getUid(), 0, 0); ModelAndView modelAndView = new ModelAndView(); - modelAndView.setViewName("messages"); + modelAndView.setViewName("messagesView"); modelAndView.addObject("user", user); modelAndView.addObject("messages", messagesService.getMessages(mids)); return modelAndView; @@ -60,14 +60,14 @@ public class Feeds { public ModelAndView getLast(@RequestParam(value = "hours", required = false, defaultValue = "0") Integer hours) { List<Integer> mids = messagesService.getLastMessages(hours); ModelAndView modelAndView = new ModelAndView(); - modelAndView.setViewName("messages"); + modelAndView.setViewName("messagesView"); modelAndView.addObject("messages", messagesService.getMessages(mids)); return modelAndView; } @RequestMapping(value = "/rss/comments", method = RequestMethod.GET) public ModelAndView getLastReplies(@RequestParam(value = "hours", required = false, defaultValue = "0") Integer hours) { ModelAndView modelAndView = new ModelAndView(); - modelAndView.setViewName("replies"); + modelAndView.setViewName("repliesView"); modelAndView.addObject("messages", messagesService.getLastReplies(hours)); return modelAndView; } |