mirror of
https://github.com/flarum/core.git
synced 2025-08-09 01:46:35 +02:00
Fix some incorrect automated refactorings
This commit is contained in:
@@ -21,7 +21,7 @@ use Flarum\Discussion\Event\Hidden;
|
||||
use Flarum\Discussion\Event\Renamed;
|
||||
use Flarum\Discussion\Event\Restored;
|
||||
use Flarum\Discussion\Event\Started;
|
||||
use Flarum\Post\Event\Deleted;
|
||||
use Flarum\Post\Event\Deleted as PostDeleted;
|
||||
use Flarum\Event\ScopePostVisibility;
|
||||
use Flarum\Post\Post;
|
||||
use Flarum\User\Guest;
|
||||
@@ -111,7 +111,7 @@ class Discussion extends AbstractModel
|
||||
$posts = $discussion->posts()->allTypes();
|
||||
|
||||
foreach ($posts->get() as $post) {
|
||||
$discussion->raise(new Deleted($post));
|
||||
$discussion->raise(new PostDeleted($post));
|
||||
}
|
||||
|
||||
$posts->delete();
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Flarum\Discussion\Search\Fulltext;
|
||||
|
||||
use Flarum\Core\Post;
|
||||
use Flarum\Post\Post;
|
||||
|
||||
class MySqlFulltextDriver implements DriverInterface
|
||||
{
|
||||
|
Reference in New Issue
Block a user