diff options
author | Vitaly Takmazov | 2019-01-20 14:52:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-01-20 14:52:45 +0300 |
commit | 8b474748883b9a4d780c7d696445126666c2094f (patch) | |
tree | 743a8cbb367788cde4eae9a4c10a7ef06c362174 /src/main/java/com/juick/server/api/PM.java | |
parent | 0f83e951d1ca5185067cde9b73613b0371f1ba2b (diff) |
Set avatar in events
Diffstat (limited to 'src/main/java/com/juick/server/api/PM.java')
-rw-r--r-- | src/main/java/com/juick/server/api/PM.java | 1 |
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; |