From 0fd795e1d7374745e5df3be58f00ddb69a55e408 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 10 Dec 2025 00:23:32 +0500 Subject: fix: total emotes were counted wrong... --- emotes/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emotes/index.php b/emotes/index.php index 06d9e43..b3c9c26 100644 --- a/emotes/index.php +++ b/emotes/index.php @@ -108,7 +108,9 @@ else { array_push($emotes, Emote::from_array_with_user($row, $db)); } - $total_emotes = count($emotes); + $stmt = $db->prepare("SELECT COUNT(*) FROM emotes WHERE visibility = 1"); + $stmt->execute(); + $total_emotes = $stmt->fetch()[0]; $total_pages = ceil($total_emotes / $limit); } -- cgit v1.2.3