# 加强群聊中的社区安全

**URL:** <https://meta.discourse.org/t/strengthening-community-safety-in-group-chats/354941>\
**Category:** Announcements\
**Created:** [2025年三月3日 01:20 UTC](https://meta.discourse.org/t/strengthening-community-safety-in-group-chats/354941 "2025-03-03T01:20:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)\
**Post date:** [2025年三月3日 01:20 UTC](https://meta.discourse.org/t/strengthening-community-safety-in-group-chats/354941/1 "2025-03-03T01:20:27Z")

</div>

在 Discourse，我们致力于营造安全健康的在线社区。为支持这一点，我们正在推出一项重要更新，允许论坛管理员访问和管理其社区内的群组聊天。

此更新确保社区领导者能够有效地管理群组聊天成员、执行指南并在需要时响应安全问题。它还有助于社区适应不断变化的在线安全法规，为管理员提供必要的工具来维护一个安全且受欢迎的空间，供所有成员使用。

我们相信这一变化将使管理员能够维护社区标准，同时继续提供一个进行有意义和富有成效的讨论的空间。一如既往，我们致力于构建在用户体验、审核需求和社区福祉之间取得平衡的功能。

此功能将在未来几天内提供给所有 Discourse 站点，并且已添加在这两个拉取请求中：

> <https://github.com/discourse/discourse/pull/31366>
>
> \### What is this feature?
> 
> This feature allows admins to remove users from cha…nnels. This is allowed for category channels and group DMs, but not one-on-one DMs, as that wouldn't make any sense. 😉 
> 
> \*\*Screenshot:\*\*
> 
> \<img width="263" alt="Screenshot 2025-02-19 at 10 59 49 AM" src="https://github.com/user-attachments/assets/049aa77d-67ae-42f8-a190-f640e4285118" /\>
> 
> \### Implementation details
> 
> This PR attempts to follow the existing structure as much as possible. The major moving parts are:
> 
> \- A new back-end service for removing users from channels.
> \- A guardian extension checking the ability to do so. This is also propagated to the front-end.
> \- A new method in the front-end chat API.
> \- UI changes.
> \- Tests.
> 
> \### Known limitations
> 
> \- When removing a member from a group DM, the header doesn't update to reflect this. This is a pre-existing issue. (It also doesn't update when adding members.) I have created a task to fix this separately.
> \- The terms \`users\` and \`members\` are mixed throughout the code base. I tried as best I could to follow the terminology of the \_directly adjacent code\_. We could potentially fix this up later.

> <https://github.com/discourse/discourse/pull/31440>
>
> \### What is this change?
> 
> In #31366, we added the ability for admins to remove… people from group chats. However, that only works as long as the admin is already in the group chat.
> 
> For forum-side group messages, admins can join any of them at will. This PR extends that same ability to chat for parity.

---

_[View the full topic](https://meta.discourse.org/t/strengthening-community-safety-in-group-chats/354941)._
