mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
@@ -134,7 +134,7 @@ class User extends AbstractModel
|
||||
// PostWasDeleted event for each post.
|
||||
$posts = $user->posts()->allTypes();
|
||||
|
||||
foreach ($posts->get() as $post) {
|
||||
foreach ($posts->cursor() as $post) {
|
||||
$user->raise(new PostDeleted($post));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user