first commit
Some checks failed
Approval After Edit JS / run (push) Has been cancelled
Approval After Edit PHP / run (push) Has been cancelled

This commit is contained in:
2025-09-20 00:20:14 +08:00
commit 01eff63c14
28 changed files with 5793 additions and 0 deletions

24
extend.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of klxf/approval-after-edit.
*
* Copyright (c) 2025 Fang_Zhijian.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Klxf\ApprovalAfterEdit;
use Flarum\Extend;
use Flarum\Post\Event\Saving;
return [
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
new Extend\Locales(__DIR__.'/locale'),
(new Extend\Event)
->listen(Saving::class, Listeners\UnapproveNewPosts::class),
];