feat: 编辑已过审帖子自动退回审核队列

This commit is contained in:
2026-05-29 04:32:11 +08:00
commit 33a41503f8
4 changed files with 98 additions and 0 deletions

29
composer.json Normal file
View File

@ -0,0 +1,29 @@
{
"name": "metazone/reapprove-on-edit",
"description": "编辑已通过审核的帖子时自动退回审核队列,防止恶意绕过审核。",
"type": "flarum-extension",
"license": "MIT",
"require": {
"flarum/core": "^1.0",
"flarum/approval": "^1.0"
},
"autoload": {
"psr-4": {
"MetaZone\\ReapproveOnEdit\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "Reapprove On Edit",
"icon": {
"name": "fas fa-shield-alt",
"backgroundColor": "#e67e22",
"color": "#fff"
}
},
"flarum-locale": {
"code": "en",
"title": "English"
}
}
}