From 7e0bc1e33aef6dc0de11a595b81854623b417572 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 22 Aug 2018 21:42:53 +0300 Subject: - Remove suburl from beginning of avatar file path, so that avatar images don't get broken when root-url changes to different sub-url. This does not change avatar urls in database, instead this fixes url on the fly after loading avatar url from database. Thanks to xet7 ! Closes #1776, closes #386 --- client/components/users/userAvatar.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components/users/userAvatar.jade') diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade index 83e2c8d0..c61ade21 100644 --- a/client/components/users/userAvatar.jade +++ b/client/components/users/userAvatar.jade @@ -1,7 +1,7 @@ template(name="userAvatar") a.member.js-member(title="{{userData.profile.fullname}} ({{userData.username}})") if userData.profile.avatarUrl - img.avatar.avatar-image(src=userData.profile.avatarUrl) + img.avatar.avatar-image(src="{{fixAvatarUrl userData.profile.avatarUrl}}") else +userAvatarInitials(userId=userData._id) -- cgit v1.2.3-1-g7c22