diff options
author | Vitaly Takmazov | 2016-07-10 22:46:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-10 22:46:56 +0300 |
commit | a0fa66fd9587407030d1c1ed3c5ee57d15c280fb (patch) | |
tree | 60c54455d7376868104c8e915b2ab8ef57340f39 /juick-www/src/main/java/com/juick/www/Discover.java | |
parent | cc192146f434263b73fb965e566e2829e70f209e (diff) |
fix getUserByHash usage
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Discover.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/Discover.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Discover.java b/juick-www/src/main/java/com/juick/www/Discover.java index 238af0fb..1811951b 100644 --- a/juick-www/src/main/java/com/juick/www/Discover.java +++ b/juick-www/src/main/java/com/juick/www/Discover.java @@ -71,10 +71,10 @@ public class Discover { } } - int visitor_uid = visitor != null ? visitor.getUID() : 0; + int visitor_uid = visitor.getUID(); String title = "*" + Utils.encodeHTML(paramTag.Name); - List<Integer> mids = MessagesQueries.getTag(sql, paramTag.TID, visitor_uid, paramBefore, (visitor == null) ? 40 : 20); + List<Integer> mids = MessagesQueries.getTag(sql, paramTag.TID, visitor_uid, paramBefore, (visitor_uid == 0) ? 40 : 20); response.setContentType("text/html; charset=UTF-8"); try (PrintWriter out = response.getWriter()) { @@ -100,7 +100,7 @@ public class Discover { ad_mid = 0; } - PageTemplates.printMessages(out, sql, null, mids, visitor, visitor == null ? 2 : 3, ad_mid); + PageTemplates.printMessages(out, sql, null, mids, visitor, visitor_uid == 0 ? 2 : 3, ad_mid); } if (mids.size() >= 20) { |