# 隐藏的个人资料中显示邀请标签

**URL:** https://meta.discourse.org/t/invite-tab-shows-on-hidden-profile/401818
**Category:** UX
**Created:** [2026年四月29日 15:45 UTC](https://meta.discourse.org/t/invite-tab-shows-on-hidden-profile/401818 "2026-04-29T15:45:09Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026年五月5日 15:29 UTC](https://meta.discourse.org/t/invite-tab-shows-on-hidden-profile/401818/2 "2026-05-05T15:29:50Z")

</div>

针对此问题及按钮问题的修复即将推出

> <https://github.com/discourse/discourse/pull/39753>
>
> Issue with hidden profiles: https://meta.discourse.org/t/invite-tab-shows-on-hid…den-profile/401818
> 
> Issue with invite button visible on others' profiles: https://meta.discourse.org/t/weird-invite-button-behavior/401819
> 
> 1. Checks if the user's profile is hidden in \`canInviteToForum\` so the tab no longer appears on hidden profiles. 
> 
> 2. Adds check for \`viewingSelf\` to hide the invite buttons on other profiles 
> 
> 3. Adds tests to avoid regressing 
> 
> 
> 
> Before:
> \<img width="2232" height="424" alt="image" src="https://github.com/user-attachments/assets/3d884e5f-46b8-4599-a6d2-8dfc77fd531e" /\>
> 
> 
> After: 
> \<img width="2194" height="450" alt="image" src="https://github.com/user-attachments/assets/1bbd1a11-1558-4800-b3ba-a3d16fc8564f" /\>
> 
> 
> Before:
> \<img width="2234" height="650" alt="image" src="https://github.com/user-attachments/assets/e4e5e65f-007d-4b7d-9c70-b2a32162f557" /\>
> 
> 
> After:
> \<img width="2242" height="530" alt="image" src="https://github.com/user-attachments/assets/40c19cf7-6702-4598-8bd4-04f4896c0586" /\>

---

_[View the full topic](https://meta.discourse.org/t/invite-tab-shows-on-hidden-profile/401818)._
