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:
parent
32df02084d
commit
b3d3c7ecac
@ -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}");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user