aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers/Site.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-29 05:44:21 +0300
committerGravatar Vitaly Takmazov2023-01-30 23:49:25 +0300
commitf8a7d417cb916b81cfa685175f3e6afbe6063cee (patch)
tree3f6923f3f32540e8506ce5b43b610460b4c67559 /src/main/java/com/juick/www/controllers/Site.java
parentdd23559a978da8980675ad4089948ade9bbc323d (diff)
SQLite support
Diffstat (limited to 'src/main/java/com/juick/www/controllers/Site.java')
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java
index eb483ccc..49736a60 100644
--- a/src/main/java/com/juick/www/controllers/Site.java
+++ b/src/main/java/com/juick/www/controllers/Site.java
@@ -582,6 +582,9 @@ public class Site {
&& (isReplyAuthor || !userService.isInBL(visitor.getUid(), reply.getUser().getUid())));
}
}
+ if (replies.size() > 0 && !visitor.isAnonymous()) {
+ messagesService.setRead(visitor, mid);
+ }
model.addAttribute("replies", replies);
return "views/thread";
}