From 820a161a125b59fa5aaff8033a9f15cd880a3bce Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Wed, 15 Apr 2020 22:51:16 +0100 Subject: [PATCH] fix avatars --- app/http/endpoints/root/callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/endpoints/root/callback.go b/app/http/endpoints/root/callback.go index e04e8ed..fde3372 100644 --- a/app/http/endpoints/root/callback.go +++ b/app/http/endpoints/root/callback.go @@ -75,7 +75,7 @@ func CallbackHandler(ctx *gin.Context) { store.Set("userid", currentUser.Id) store.Set("name", currentUser.Username) - store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%s/%s.webp", currentUser.Id, currentUser.Avatar)) + store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%d/%s.webp", currentUser.Id, currentUser.Avatar)) if err = store.Save(); err != nil { log.Error(err.Error()) }