fix: fix hardcoded 5 that was giving everyone the same badge.

This commit is contained in:
Floorb 2024-10-30 00:39:25 -04:00
parent c6b3f7770a
commit ac06c3f8f2

View file

@ -43,7 +43,7 @@ $total_pfav = array_sum(
$total_yfav = $profile_info->favourites->count();
// Badges
$profile_badge = match ((int) 5) {
$profile_badge = match ((int) $profile_info['badge']) {
1 => '<img src="/img/badges/donate.png" title="[Donated] Donated to Ponepaste" style="margin:5px" alt="Donated to PonePaste" />',
2 => '<img src="/img/badges/spoon.png" title="[TheWoodenSpoon] You had one job" style="margin:5px" alt="You had one job" />',
3 => '<img src="/img/badges/abadge.png" title="[>AFuckingBadge] Won a PasteJam Competition" style="margin:5px" alt="Won a PasteJam competition" />',