From f9c81ea39b5b9245ac932e8dc4424c0efdd23557 Mon Sep 17 00:00:00 2001 From: Bronson Oka Date: Fri, 19 Nov 2021 10:38:20 -1000 Subject: [PATCH] fix(images-expiry): correctly remove image expiry from local store avatar --- src/components/modals/profile/UpdateAvatar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/modals/profile/UpdateAvatar.vue b/src/components/modals/profile/UpdateAvatar.vue index e88eea35..37617706 100644 --- a/src/components/modals/profile/UpdateAvatar.vue +++ b/src/components/modals/profile/UpdateAvatar.vue @@ -49,7 +49,9 @@ export default { v.errorMessage = null const params = { username: props.user.username, - avatar: v.userCopy.avatar, + // if uploading locally, remove local root + // server side uses relative links in expirty + avatar: v.userCopy.avatar.replace(window.images_local_root, '') } usersApi.update(props.user.id, params) .then(data => {