mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Update follower count API source (#5397)
Update follower count API source
This commit is contained in:
commit
26909dc580
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ namespace osu.Game.Users
|
||||
public int PostCount;
|
||||
|
||||
[JsonProperty(@"follower_count")]
|
||||
public int[] FollowerCount;
|
||||
public int FollowerCount;
|
||||
|
||||
[JsonProperty]
|
||||
private string[] playstyle
|
||||
|
Loading…
Reference in New Issue
Block a user