mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
@@ -53,7 +53,7 @@ class DeleteFlagsHandler
|
|||||||
|
|
||||||
$this->assertCan($actor, 'viewFlags', $post->discussion);
|
$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();
|
$post->flags()->delete();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user