We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ad7014 commit f9c81eaCopy full SHA for f9c81ea
src/components/modals/profile/UpdateAvatar.vue
@@ -49,7 +49,9 @@ export default {
49
v.errorMessage = null
50
const params = {
51
username: props.user.username,
52
- avatar: v.userCopy.avatar,
+ // if uploading locally, remove local root
53
+ // server side uses relative links in expirty
54
+ avatar: v.userCopy.avatar.replace(window.images_local_root, '')
55
}
56
usersApi.update(props.user.id, params)
57
.then(data => {
0 commit comments