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

Update follower count API source

This commit is contained in:
Dean Herbert 2019-07-18 14:05:57 +09:00
parent e57097020a
commit f175f597e7
2 changed files with 2 additions and 2 deletions

View File

@ -53,6 +53,6 @@ namespace osu.Game.Overlays.Profile.Header.Components
User.BindValueChanged(user => updateFollowers(user.NewValue), true);
}
private void updateFollowers(User user) => followerText.Text = user?.FollowerCount?.Length > 0 ? user.FollowerCount[0].ToString("#,##0") : "0";
private void updateFollowers(User user) => followerText.Text = user?.FollowerCount.ToString("#,##0");
}
}

View File

@ -118,7 +118,7 @@ namespace osu.Game.Users
public int PostCount;
[JsonProperty(@"follower_count")]
public int[] FollowerCount;
public int FollowerCount;
[JsonProperty]
private string[] playstyle