1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:03:22 +08:00

Merge pull request #12204 from ilsubyeega/drawavatar-use-avatar-url

Use avatar_url from user first instead of a.ppy.sh in DrawableAvatar
This commit is contained in:
Dean Herbert 2021-06-03 20:13:14 +09:00 committed by GitHub
commit d1110d00a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ namespace osu.Game.Users.Drawables
private void load(LargeTextureStore textures)
{
if (user != null && user.Id > 1)
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
Texture = textures.Get(user.AvatarUrl);
Texture ??= textures.Get(@"Online/avatar-guest");
}