mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 06:07:26 +09: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;
|
string avatarUrl = user?.AvatarUrl;
|
||||||
if (api != null && avatarUrl != null)
|
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)
|
else if (user != null && user.Id > 1)
|
||||||
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
|
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user