Fang_Zhijian 01eff63c14
Some checks failed
Approval After Edit JS / run (push) Has been cancelled
Approval After Edit PHP / run (push) Has been cancelled
first commit
2025-09-20 00:20:14 +08:00

25 lines
548 B
PHP

<?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),
];