aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-06-29 02:06:52 +0300
committerGravatar Vitaly Takmazov2022-06-29 02:06:52 +0300
commit4dd8d7cdc8fa783b19b481057b1e009084708e22 (patch)
tree911eca7b061f7ed7c55ba710f901fdbba704df72 /src/main/java/com/juick/service
parentde185ab5bc2d3e26d3e1ecc5c705fed4cb4a4e40 (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.java5
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;
}