# אפשרות ליצור דגלים מותאמים אישית, שמסתירים אוטומטית תוכן, בדומה ל"ספאם" ו"לא הולם"

**URL:** https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894
**Category:** Feature
**Tags:** moderation
**Created:** [8 באוקטובר,‏ 2024,‏ 3:58pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894 "2024-10-08T15:58:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [8 באוקטובר,‏ 2024,‏ 3:58pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/1 "2024-10-08T15:58:19Z")

</div>

I am delighted that it is now possible[to create custom moderation flags](https://meta.discourse.org/t/moderation-flags/325589).

During testing, it was noted that initially, it seemed impossible to equip these with the same functionality as the predefined “spam” and “inappropriate” flags.

After setting `auto_action_type` to `true` [via console](https://meta.discourse.org/t/moderation-flags/325589/3), the flags behave as wanted.

Please add this option to the admin user interface too.

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [6 באוקטובר,‏ 2024,‏ 9:54pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/2 "2024-10-06T21:54:47Z")

</div>

“auto hide” for a custom moderation flag can be enabled using the rails console:

```plaintext
Flag.find(1001).update!(auto_action_type: true)

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [8 באוקטובר,‏ 2024,‏ 5:27pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/3 "2024-10-08T17:27:23Z")

</div>

Thanks for sharing that rails hack!

So is the suggestion to add a toggle to the UI when editing custom flags? So some flags have it and others do not, at the discretion of the admin?

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [8 באוקטובר,‏ 2024,‏ 5:30pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/4 "2024-10-08T17:30:36Z")

</div>

> [@tobiaseigen](#):
>
> So is the suggestion to add a toggle to the UI when editing custom flags?

Exactly. (Will need [enabling of editing of custom flags](https://meta.discourse.org/t/flags-cant-be-edited-after-they-have-been-used/329911) 😇)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [15 באוקטובר,‏ 2024,‏ 10:56pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/8 "2024-10-15T22:56:41Z")

</div>

> [@tobiaseigen](#):
>
> So is the suggestion to add a toggle to the UI when editing custom flags? So some flags have it and others do not, at the discretion of the admin?

We’re going to be looking into adding this toggle. Shouldn’t be too difficult.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [22 באוקטובר,‏ 2024,‏ 1:34pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/9 "2024-10-22T13:34:55Z")

</div>

The toggle has now been added, in this PR: [FEATURE: auto\_action\_type field for flags by KrisKotlarek · Pull Request #29306 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/29306)

The moderation flags admin page looks like this now:

 ![The image depicts a screenshot of a website with flags, titled "Moderation Flags," and features a pop-up box and navigation bar. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/c/8/1c8fb842343d00633dd37b1d5139f82b7c6be30e.png)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [26 באוקטובר,‏ 2024,‏ 3:00pm UTC](https://meta.discourse.org/t/allow-creation-of-custom-flags-which-auto-hide-content-similar-to-spam-and-inapproriate/329894/10 "2024-10-26T15:00:35Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
