Explorar o código

Use username not id

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
ba09a6c77f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/AvatarIcon.vue

+ 1 - 1
src/components/AvatarIcon.vue

@@ -35,7 +35,7 @@
 				if(this.ajaxUser) return
 
 				this.axios
-					.get('/api/v1/user/' + this.user.id)
+					.get('/api/v1/user/' + this.user.username)
 					.then((res) => {
 						this.ajaxUser = res.data
 					})