aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-01-20 14:52:45 +0300
committerGravatar Vitaly Takmazov2019-01-20 14:52:45 +0300
commit8b474748883b9a4d780c7d696445126666c2094f (patch)
tree743a8cbb367788cde4eae9a4c10a7ef06c362174 /src/main/java/com/juick/server/api
parent0f83e951d1ca5185067cde9b73613b0371f1ba2b (diff)
Set avatar in events
Diffstat (limited to 'src/main/java/com/juick/server/api')
-rw-r--r--src/main/java/com/juick/server/api/PM.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/PM.java b/src/main/java/com/juick/server/api/PM.java
index a80ad0dc..242cd31c 100644
--- a/src/main/java/com/juick/server/api/PM.java
+++ b/src/main/java/com/juick/server/api/PM.java
@@ -99,6 +99,7 @@ public class PM {
jmsg.setUser(visitor);
jmsg.setText(body);
jmsg.setTo(userTo);
+ jmsg.getUser().setAvatar(webApp.getAvatarWebPath(jmsg.getUser()));
applicationEventPublisher.publishEvent(new MessageEvent(this, jmsg, Collections.singletonList(jmsg.getTo())));
return jmsg;