Improved avatar background job

This commit is contained in:
2017-06-13 13:23:54 +02:00
parent 4145f86e84
commit bdb8d983d2
8 changed files with 139 additions and 26 deletions

View File

@ -89,7 +89,7 @@ func main() {
}
if ctx.CanUseWebP() {
return ctx.File("images/avatars/webp/" + user.ID + ".webp")
return ctx.File("images/avatars/large/webp/" + user.ID + ".webp")
}
err = errors.New("Your browser doesn't support the WebP image format")
@ -106,7 +106,7 @@ func main() {
}
if ctx.CanUseWebP() {
return ctx.File("images/avatars/webp-small/" + user.ID + ".webp")
return ctx.File("images/avatars/small/webp/" + user.ID + ".webp")
}
err = errors.New("Your browser doesn't support the WebP image format")