From fb663f0b72523487dc26005a6e68d588e46d9ac9 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 16 Jan 2020 19:41:50 +0100 Subject: [PATCH] Fix profile picture bug in social component --- src/app/services/selfservice/self.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/services/selfservice/self.service.ts b/src/app/services/selfservice/self.service.ts index bc0c4d8..9b97659 100644 --- a/src/app/services/selfservice/self.service.ts +++ b/src/app/services/selfservice/self.service.ts @@ -47,7 +47,12 @@ export class SelfService { user.points = response.data.getSelf.points; user.level = response.data.getSelf.level; for (const friend of response.data.getSelf.friends) { - user.friends.push(new FriendInfo(friend.id, friend.name, friend.level, friend.profilePicture)); + user.friends.push(new FriendInfo( + friend.id, + friend.name, + friend.level, + user.buildProfilePictureUrl(friend.profilePicture) + )); } for (const group of response.data.getSelf.groups) { user.groups.push(new GroupInfo(group.id, group.name));