mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 03:51:56 +08:00
parent
7cecf23b0c
commit
d14b20ca74
@ -53,7 +53,7 @@ class DeleteFlagsHandler
|
||||
|
||||
$this->assertCan($actor, 'viewFlags', $post->discussion);
|
||||
|
||||
$this->events->fire(new FlagsWillBeDeleted($post, $actor, $command->data));
|
||||
$this->events->dispatch(new FlagsWillBeDeleted($post, $actor, $command->data));
|
||||
|
||||
$post->flags()->delete();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user