Update follower count API source (#5397)

Update follower count API source
This commit is contained in:
Dean Herbert 2019-07-31 00:24:18 +09:00 committed by GitHub
commit 26909dc580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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