mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
Only say a discussion was moved if it already exists
This commit is contained in:
@@ -26,7 +26,10 @@ class CategorySaver
|
||||
}
|
||||
|
||||
$discussion->category_id = $categoryId;
|
||||
|
||||
if ($discussion->exists) {
|
||||
$discussion->raise(new DiscussionWasMoved($discussion, $user, $oldCategoryId));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user