# 带理由的评论

**URL:** https://meta.discourse.org/t/review-with-reason/323835
**Category:** Theme component
**Created:** [2024年八月28日 18:18 UTC](https://meta.discourse.org/t/review-with-reason/323835 "2024-08-28T18:18:01Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [2024年八月28日 18:18 UTC](https://meta.discourse.org/t/review-with-reason/323835/1 "2024-08-28T18:18:01Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 此主题组件允许您在版主审查时要求填写操作原因 |
| 🛠 | **存储库** | \u003chttps://github.com/Lhcfl/review-with-reason\u003e |
| ❓ | **安装指南** | [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **初次使用 Discourse 主题？** | [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

\u003c!-- 为自动安装按钮填写“repoName”和“repoURL” –\u003e

安装此主题组件

\u003c!-- 用一两句话描述此主题/组件 –\u003e

此组件允许/要求版主在审查时填写操作原因，然后将其记录在主题中。  
**⚠ 请注意，主题必须对所有有权审查的人可见，否则审查将失败！请在安装前检查配置部分。**

## 屏幕截图

### 审查

 ![The image shows a computer screen with a pop-up window displaying a text field for a message with an 'OK' button next to a 'Cancel' button. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/3/f/5/3f5f60553c73b945735540b6fadc58cc94ed48f3.png)

### 日志记录主题

 ![This is a screenshot of a social media post containing text. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/6/7/567555a1dd9d8eff3c1802772b7509b3acedeaa0.png)

> **更多示例**
>
> ![This image is a screenshot of a conversation with a user on a social media platform. The conversation is discussing the appropriateness of a post in a specific group. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/9/a/09a47dca3083860ef34f47ae23dcc8c031efe12b.png)  
> ![img](https://global.discourse-cdn.com/meta/original/4X/4/6/5/465fcf1e0c203b8188772e92a389acdcd70df7b6.png)

## 配置

 ![This is a screenshot of a web interface, likely from a content management system, displaying various settings for topic ID overrides for reviewable type. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/f/d/8/fd8b415be655cc575c5326e3e406a3717605161e.png)

⚠ **重要提示** 对于任何包含“logger\_topic\_id”的设置：

logger\_topic\_id 是用于记录原因的主题。

- 必需：主题必须具有审查者（版主和类别版主）的写入权限，否则审查将失败。
- 强烈建议：此主题不应对其他人可见，除非将 `hide_reviewable_user_email` 和 `hide_reviewable_details` 设置为 true，因为它将直接记录待批准用户的电子邮件地址以及标记帖子的人员。

设置：

- `logger_topic_id`：全局 logger\_topic\_id

- `allow_no_reason`：开启时，审查者可以跳过提供原因。否则，他们必须输入原因。

- `max_length_raw`：自动日志帖子中引用的最大长度

- `skip_for_categories`：对于这些类别，跳过解释原因的要求

- `logger_topic_id_override_for_catrgories` 和 `logger_topic_id_override_for_reviewable_type`：对于这些情况，覆盖 logger\_topic\_id。例如，由于只有版主可以审查用户，您可以为此类型设置一个专用的 logger\_topic。

- `hide_reviewable_details`：隐藏日志中可审查条目的详细信息，通常包括谁报告的、何时报告的以及为什么报告的。

- `hide_reviewable_user_email`：隐藏日志中待审查用户的电子邮件。

- `hide_reviewable_user_fields`：要隐藏的待审查用户在日志中的用户字段名称。

---

_[View the full topic](https://meta.discourse.org/t/review-with-reason/323835)._
