aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-23 10:07:28 +0300
committerGravatar Vitaly Takmazov2017-10-23 10:10:55 +0300
commit6bd93c6805c26f1b3969de5f0a3b67a0cb9a38d5 (patch)
tree777d0680cba81d95cf556291660a2f51b38e0b8f /juick-www/src/main/java/com/juick/www
parent1b78657973b9da7af32e7e9df8ea3e92a7928876 (diff)
www: fix thread display for anonymous visitors
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Messages.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Messages.java b/juick-www/src/main/java/com/juick/www/controllers/Messages.java
index ce678902..7c96705f 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/Messages.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/Messages.java
@@ -507,8 +507,8 @@ public class Messages {
return String.format("redirect:/%s/%d", msg.getUser().getName(), mid);
}
msg.VisitorCanComment = visitor.getUid() > 0;
+ fillUserModel(model, user, visitor);
if (visitor.getUid() > 0) {
- fillUserModel(model, user, visitor);
boolean isMsgAuthor = visitor.getUid() == msg.getUser().getUid();
boolean isInBL = userService.isInBL(msg.getUser().getUid(), visitor.getUid());
msg.VisitorCanComment = isMsgAuthor || !(msg.ReadOnly || isInBL);