From c5d14e9ca835cda1a0cd5dfc85ad479c081f48c3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Feb 2018 11:59:02 +0300 Subject: api: fix rss views --- juick-server/src/main/java/com/juick/server/api/rss/Feeds.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-server') 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 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 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; } -- cgit v1.2.3