diff options
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers/Tags.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Tags.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Tags.java b/juick-www/src/main/java/com/juick/www/controllers/Tags.java index 73813179..a0682a45 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Tags.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Tags.java @@ -20,6 +20,7 @@ package com.juick.www.controllers; import com.juick.service.AdsService; import com.juick.service.MessagesService; import com.juick.service.TagService; +import com.juick.util.UserUtils; import com.juick.www.Utils; import com.juick.www.WebApp; import org.apache.commons.lang3.CharEncoding; @@ -61,7 +62,7 @@ public class Tags { @PathVariable String tagName, @RequestParam(required = false, defaultValue = "0") int before, HttpServletResponse response) throws IOException { - com.juick.User visitor = webApp.getVisitorUser(request, response); + com.juick.User visitor = UserUtils.getCurrentUser(); String paramTagStr = StringEscapeUtils.unescapeHtml4(tagName); com.juick.Tag paramTag = tagService.getTag(paramTagStr, false); |