diff options
author | Vitaly Takmazov | 2018-12-24 12:34:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-12-24 12:34:12 +0300 |
commit | c61a9ce06d97f1f9300640bdb18263bc99d2bf03 (patch) | |
tree | 14d26a0ccb7f27d4260e581f88da7d6547869ac2 /src | |
parent | 9cf37c85baa1a17a9f644b371c69dbd9daf0cb46 (diff) |
no need to setRead for anonymous
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index 9d9a809d..245ae783 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -967,7 +967,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ "ORDER BY replies.reply_id ASC", new MapSqlParameterSource("mid", mid).addValue("uid", user.getUid()), new MessageMapper()); - if (replies.size() > 0) { + if (replies.size() > 0 && !user.isAnonymous()) { setRead(user, mid); } replies.forEach(i -> i.setEntities(MessageUtils.getEntities(i))); |