diff options
author | Vitaly Takmazov | 2021-10-21 22:52:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-21 22:52:14 +0300 |
commit | c6972c05dcee19afb5725767f755a56f5162aee2 (patch) | |
tree | 64b8f3588e97d8e1141fc17646e99a11f57abe46 /src/main/java/com/juick/www/rss/Feeds.java | |
parent | cfb6c1894d8223eac62d03eeececa7baf192aced (diff) |
Make popular feed equal to service user recommendations feed to have correct RSS feeds
Diffstat (limited to 'src/main/java/com/juick/www/rss/Feeds.java')
-rw-r--r-- | src/main/java/com/juick/www/rss/Feeds.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/rss/Feeds.java b/src/main/java/com/juick/www/rss/Feeds.java index 34ad7e5e..8b396fd2 100644 --- a/src/main/java/com/juick/www/rss/Feeds.java +++ b/src/main/java/com/juick/www/rss/Feeds.java @@ -51,7 +51,7 @@ public class Feeds { public ModelAndView getBlog(@Visitor User visitor, @PathVariable String userName, @PathVariable FeedType feedType) { User user = userService.getUserByName(userName); if (!user.isAnonymous() && !user.isBanned()) { - List<Integer> mids = feedType == FeedType.blog ? messagesService.getUserBlog(user.getUid(), 0, 0) : messagesService.getUserBlogWithRecommendations(user.getUid(), 0, 0); + List<Integer> mids = feedType == FeedType.blog ? messagesService.getUserBlog(user.getUid(), 0, 0) : messagesService.getUserBlogWithRecommendations(user, visitor, 0, 0); ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("messagesView"); modelAndView.addObject("user", user); |