Skip to content

Commit

Permalink
Merge pull request #23 from epochtalk/images-expiry
Browse files Browse the repository at this point in the history
fix(images-expiry): correctly remove image expiry from local store
  • Loading branch information
akinsey authored Nov 19, 2021
2 parents 5ad7014 + f9c81ea commit 2fb16c2
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 2fb16c2

Please sign in to comment.