aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers/Site.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-11-19 00:39:58 +0300
committerGravatar Vitaly Takmazov2020-11-19 00:39:58 +0300
commit971154ad03e8324324c48a24ce5091b8cd18d77d (patch)
tree35a09d8255aafa4c5259ed923f095f283d4af3a6 /src/main/java/com/juick/www/controllers/Site.java
parent18033a96786cc178f10daf348bdcd1cf3ca67bf6 (diff)
Display "reply" button to user when message author ignored him
* user replies are still muted for author
Diffstat (limited to 'src/main/java/com/juick/www/controllers/Site.java')
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java
index 57115629..4aa82f1a 100644
--- a/src/main/java/com/juick/www/controllers/Site.java
+++ b/src/main/java/com/juick/www/controllers/Site.java
@@ -490,7 +490,7 @@ public class Site {
List<Integer> unread = messagesService.getUnread(visitor);
visitor.setUnreadCount(unread.size());
boolean isMsgAuthor = visitor.getUid() == msg.getUser().getUid();
- boolean isInBL = userService.isInBLAny(msg.getUser().getUid(), visitor.getUid());
+ boolean isInBL = userService.isInBL(visitor.getUid(), msg.getUser().getUid());
msg.VisitorCanComment = isMsgAuthor || !(msg.ReadOnly || isInBL);
}
model.addAttribute("msg", msg);
@@ -549,7 +549,7 @@ public class Site {
boolean isMsgAuthor = visitor.getUid() == msg.getUser().getUid();
boolean isReplyAuthor = visitor.getUid() == reply.getUser().getUid();
reply.VisitorCanComment = isMsgAuthor || (!msg.ReadOnly
- && msg.VisitorCanComment && (isReplyAuthor || !userService.isInBLAny(visitor.getUid(), reply.getUser().getUid())));
+ && msg.VisitorCanComment && (isReplyAuthor || !userService.isInBL(visitor.getUid(), reply.getUser().getUid())));
}
}
model.addAttribute("replies", replies);