diff options
author | Vitaly Takmazov | 2022-06-29 02:06:52 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-06-29 02:06:52 +0300 |
commit | 4dd8d7cdc8fa783b19b481057b1e009084708e22 (patch) | |
tree | 911eca7b061f7ed7c55ba710f901fdbba704df72 /src/main/java/com/juick/service | |
parent | de185ab5bc2d3e26d3e1ecc5c705fed4cb4a4e40 (diff) |
Avatars in /thread API endpoint
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r-- | src/main/java/com/juick/service/MessagesServiceImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index e54c23cb..130779af 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -878,7 +878,10 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ if (replies.size() > 0 && !user.isAnonymous()) { setRead(user, mid); } - replies.forEach(i -> i.setEntities(MessageUtils.getEntities(i))); + replies.forEach(i -> { + i.setEntities(MessageUtils.getEntities(i)); + i.getUser().setAvatar(webApp.getAvatarWebPath(i.getUser())); + }); return replies; } |