diff options
author | 2018-11-20 17:42:39 +0300 | |
---|---|---|
committer | 2018-11-20 17:42:39 +0300 | |
commit | 6d4f8164ac97690a1993981605435cdc6ff097f2 (patch) | |
tree | af86327338539d41707a0e6b6c1c2d46fece8878 /src/main/java/com/juick/server/api/PM.java | |
parent | b5eed5e659c94eb618b3f35dff92988e2860235c (diff) |
fix web avatar urls
Diffstat (limited to 'src/main/java/com/juick/server/api/PM.java')
-rw-r--r-- | src/main/java/com/juick/server/api/PM.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/api/PM.java b/src/main/java/com/juick/server/api/PM.java index e00a4c97..05f46d8d 100644 --- a/src/main/java/com/juick/server/api/PM.java +++ b/src/main/java/com/juick/server/api/PM.java @@ -69,7 +69,7 @@ public class PM { } List<Message> msgs = pmQueriesService.getPMMessages(visitor.getUid(), uid); - msgs.forEach(m -> m.getUser().setAvatar(webApp.getAvatarPublicUrl(m.getUser()))); + msgs.forEach(m -> m.getUser().setAvatar(webApp.getAvatarWebPath(m.getUser()))); return msgs; } @@ -115,7 +115,7 @@ public class PM { // TODO: ignore cnt param for now but make sure paging param will not be cnt List<Chat> lastconv = pmQueriesService.getLastChats(visitor); - lastconv.forEach(c -> c.setAvatar(webApp.getAvatarPublicUrl(c))); + lastconv.forEach(c -> c.setAvatar(webApp.getAvatarWebPath(c))); PrivateChats pms = new PrivateChats(); pms.setUsers(lastconv); return pms; |