diff --git a/app/Http/Controllers/Multiplayer/RoomsController.php b/app/Http/Controllers/Multiplayer/RoomsController.php index 33e7e7c13c4..97c6e7fd555 100644 --- a/app/Http/Controllers/Multiplayer/RoomsController.php +++ b/app/Http/Controllers/Multiplayer/RoomsController.php @@ -212,10 +212,11 @@ public function store() private function createJoinedRoomResponse($room) { return json_item( - $room - ->load('host.country') - ->load('playlist.beatmap.beatmapset') - ->load('playlist.beatmap.baseMaxCombo'), + $room->loadMissing([ + 'host', + 'playlist.beatmap.beatmapset', + 'playlist.beatmap.baseMaxCombo', + ]), 'Multiplayer\Room', [ 'current_user_score.playlist_item_attempts',