Skip to content

Commit

Permalink
fix(images-expiry): correctly remove image expiry from local store
Browse files Browse the repository at this point in the history
avatar
  • Loading branch information
unenglishable committed Nov 19, 2021
1 parent 5ad7014 commit f9c81ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/modals/profile/UpdateAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit f9c81ea

Please sign in to comment.