Skip to content

Commit

Permalink
Update follower count API source (#5397)
Browse files Browse the repository at this point in the history
Update follower count API source
  • Loading branch information
peppy authored Jul 30, 2019
2 parents d5a5a86 + 5bb31ec commit 26909dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ private void load()
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");
}
}
2 changes: 1 addition & 1 deletion osu.Game/Users/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class UserCover
public int PostCount;

[JsonProperty(@"follower_count")]
public int[] FollowerCount;
public int FollowerCount;

[JsonProperty]
private string[] playstyle
Expand Down

0 comments on commit 26909dc

Please sign in to comment.