diff --git a/src/Support/Authorization/PostAuthorization.php b/src/Support/Authorization/PostAuthorization.php index 62728f88..609c78e0 100644 --- a/src/Support/Authorization/PostAuthorization.php +++ b/src/Support/Authorization/PostAuthorization.php @@ -36,7 +36,7 @@ public static function bulkDelete(User $user, array $postIds): bool $query = $query->withTrashed(); } - $posts = $query->with(['thread', 'thread.category'])->whereIn('id', $postIds); + $posts = $query->with(['thread', 'thread.category'])->whereIn('id', $postIds)->get(); $accessibleCategoryIds = CategoryAccess::getFilteredIdsFor($user);