# 即使从未使用过，旗帜也无法编辑

**URL:** <https://meta.discourse.org/t/flags-cant-be-edited-even-if-theyve-never-been-used/413137>\
**Category:** Support\
**Created:** [2026年九月23日 16:44 UTC](https://meta.discourse.org/t/flags-cant-be-edited-even-if-theyve-never-been-used/413137 "2026-09-23T16:44:02Z")\
**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年九月23日 22:57 UTC](https://meta.discourse.org/t/flags-cant-be-edited-even-if-theyve-never-been-used/413137/2 "2026-09-23T22:57:09Z")

</div>

是的，我也看到了，确实存在 ID 冲突……你_可以_编辑未使用的自定义标志，只是无法编辑最初创建的那几个 🙃

合并后这个问题就会得到解决

> <https://github.com/discourse/discourse/pull/44064>
>
> Reported here: https://meta.discourse.org/t/flags-cant-be-edited-even-if-theyve-…never-been-used/413137
> 
> \`SYSTEM\_FLAG\_IDS\` was generated from \`PostActionType.types\`, which returns every flag row including custom ones... so some custom flag ids were baked in, and any site's custom flags with those same ids (1001–1003, 1010–1012) showed up as non-editable and non-deletable. Generally any site that has created 1 custom flag will see this (because they start at 1001) 
> 
> This switches away from generated IDs to a \`system\` attribute, and scopes the generated constant to system ids so custom flags won't leak again. 
> 
> Now that the generator can be fixed the task can be fully run... so this also includes the regenerated \`admin/lib/constants.js\`, plus two files generated from earlier changes that didn't run it: \`notification-types.js\` (#43044) and the emoji data (#39496). 😵‍💫

---

_[View the full topic](https://meta.discourse.org/t/flags-cant-be-edited-even-if-theyve-never-been-used/413137)._
