mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 05:27:17 +09:00
Merge pull request #12134 from Joehuu/add-comments-count
This commit is contained in:
commit
09bc7267c0
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Humanizer;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
@ -113,7 +114,12 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
}
|
}
|
||||||
|
|
||||||
topLinkContainer.AddText("Contributed ");
|
topLinkContainer.AddText("Contributed ");
|
||||||
topLinkContainer.AddLink($@"{user.PostCount:#,##0} forum posts", $"{api.WebsiteRootUrl}/users/{user.Id}/posts", creationParameters: embolden);
|
topLinkContainer.AddLink("forum post".ToQuantity(user.PostCount, "#,##0"), $"{api.WebsiteRootUrl}/users/{user.Id}/posts", creationParameters: embolden);
|
||||||
|
|
||||||
|
addSpacer(topLinkContainer);
|
||||||
|
|
||||||
|
topLinkContainer.AddText("Posted ");
|
||||||
|
topLinkContainer.AddLink("comment".ToQuantity(user.CommentsCount, "#,##0"), $"{api.WebsiteRootUrl}/comments?user_id={user.Id}", creationParameters: embolden);
|
||||||
|
|
||||||
string websiteWithoutProtocol = user.Website;
|
string websiteWithoutProtocol = user.Website;
|
||||||
|
|
||||||
|
@ -120,6 +120,9 @@ namespace osu.Game.Users
|
|||||||
[JsonProperty(@"post_count")]
|
[JsonProperty(@"post_count")]
|
||||||
public int PostCount;
|
public int PostCount;
|
||||||
|
|
||||||
|
[JsonProperty(@"comments_count")]
|
||||||
|
public int CommentsCount;
|
||||||
|
|
||||||
[JsonProperty(@"follower_count")]
|
[JsonProperty(@"follower_count")]
|
||||||
public int FollowerCount;
|
public int FollowerCount;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user