Skip to content

Commit 86198aa

Browse files
authored
Merge pull request #11074 from nanaya/kudosu-rankings-country
Skip querying countries table for kudosu ranking page
2 parents 40d38e3 + e35d679 commit 86198aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/Http/Controllers/RankingController.php

-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ public function kudosu()
259259
)];
260260
}
261261

262-
$scores->loadMissing('country');
263-
264262
return ext_view('rankings.kudosu', compact('scores'));
265263
}
266264

resources/views/rankings/kudosu.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
<td class="ranking-page-table__column">
3939
<div class="ranking-page-table__user-link">
4040
@include('objects._flag_country', [
41-
'countryCode' => $user->country->acronym,
41+
'countryCode' => $user->country_acronym,
4242
'modifiers' => 'medium',
4343
])
44-
{!! link_to_user($user, null, '', ['ranking-page-table__user-link-text']) !!}
44+
{!! link_to_user($user, null, '', ['ranking-page-table__user-link-text']) !!}
4545
</div>
4646
</td>
4747
<td class="ranking-page-table__column ranking-page-table__column--focused">

0 commit comments

Comments
 (0)