# ユーザカードの「Cheers」がグループの表示設定を「尊重」しない

**URL:** https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600
**Category:** Bug
**Tags:** gamification
**Created:** [2025 年 8 月 14 日午後 1:08 UTC](https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600 "2025-08-14T13:08:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2025 年 8 月 14 日午後 1:08 UTC](https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600/1 "2025-08-14T13:08:39Z")

</div>

再現手順:

1. リーダーボードを特定のグループに制限する
2. グループのユーザーとしてログインする
3. ユーザーカードとユーザープロファイルにある「Cheers」が表示され、リーダーボードへのリンクが無効なページに移動する

期待される動作は、リーダーボードの「グループに表示」設定に追加されていないユーザーに対して、ユーザーカードまたはユーザープロファイルに「Cheers」が表示されないことです。

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2025 年 8 月 15 日午前 8:13 UTC](https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600/3 "2025-08-15T08:13:19Z")

</div>

CSSの回避策として、以下のCSSを使用しました。さらに、特定の「body not staff」CSSでラップして、通常のユーザーと匿名ユーザーにのみ適用することもできます。これにより、管理者やモデレーターにはCheersが引き続き表示されます。

```css
//ユーザーカードのCheersスコアを非表示
.user-card-metadata-outlet.gamification-score {
    display: none;
}
//ユーザープロフィールのCheersスコアを非表示（それが実際にその<dl>タグ内の最後の<div>であり、他のプラグインやtcがその後に独自のdivを追加していない場合）
body.user-summary-page #collapsed-info-panel > dl > div:last-child {
    display:none;
}

```

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2025 年 9 月 2 日午後 10:08 UTC](https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600/4 "2025-09-02T22:08:07Z")

</div>

はい、少し厄介です。gamification は最初のリーダーボードをデフォルトとして宣言するため、制限された可視性を持つ 2 番目のリーダーボードがあれば、この問題は発生しません。

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2026 年 1 月 13 日午後 12:00 UTC](https://meta.discourse.org/t/cheers-in-usercard-doesnt-respect-the-group-visibility-settings/378600/5 "2026-01-13T12:00:41Z")

</div>


