Skip to content

Commit f9c81ea

Browse files
committed
fix(images-expiry): correctly remove image expiry from local store
avatar
1 parent 5ad7014 commit f9c81ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/modals/profile/UpdateAvatar.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export default {
4949
v.errorMessage = null
5050
const params = {
5151
username: props.user.username,
52-
avatar: v.userCopy.avatar,
52+
// if uploading locally, remove local root
53+
// server side uses relative links in expirty
54+
avatar: v.userCopy.avatar.replace(window.images_local_root, '')
5355
}
5456
usersApi.update(props.user.id, params)
5557
.then(data => {

0 commit comments

Comments
 (0)