1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Revert relative url checking to AvatarUrl

This commit is contained in:
ilsubyeega 2021-03-29 20:01:20 +09:00
parent 32df02084d
commit b3d3c7ecac

View File

@ -36,7 +36,7 @@ namespace osu.Game.Users.Drawables
{
string avatarUrl = user?.AvatarUrl;
if (api != null && avatarUrl != null)
Texture = textures.Get(avatarUrl.StartsWith('/') ? $"{api.WebsiteRootUrl}{avatarUrl}" : avatarUrl);
Texture = textures.Get(avatarUrl);
else if (user != null && user.Id > 1)
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");