From ac06c3f8f20ec8dae3ae38bf4050d6857c164a25 Mon Sep 17 00:00:00 2001
From: Floorb <132411956+Neetpone@users.noreply.github.com>
Date: Wed, 30 Oct 2024 00:39:25 -0400
Subject: [PATCH] fix: fix hardcoded 5 that was giving everyone the same badge.
---
public/user.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/user.php b/public/user.php
index f246e57..d37a4c1 100644
--- a/public/user.php
+++ b/public/user.php
@@ -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 => '
',
2 => '
',
3 => '
',