UX: display post count badge even when user has only two posts. (#15990)

Previously, it only displayed the badge when a user has 3 or more posts.
This commit is contained in:
Vinoth Kannan 2022-02-18 09:03:32 +05:30 committed by GitHub
parent a312b9ae88
commit b9d943220d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ createWidget("topic-participant", {
}),
];
if (attrs.post_count > 2) {
if (attrs.post_count > 1) {
linkContents.push(h("span.post-count", attrs.post_count.toString()));
}

View File

@ -37,7 +37,7 @@ discourseModule(
this.set("args", {
username: "test",
avatar_template: "/images/avatar.png",
post_count: 5,
post_count: 2,
primary_group_name: "devs",
flair_name: "devs",
flair_url: "/images/d-logo-sketch-small.png",