summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-03 23:31:30 +0500
committerilotterytea <iltsu@alright.party>2025-05-03 23:31:30 +0500
commitfd9fb70fc28a22d3112d395e93377733194c6528 (patch)
treeee5bdcef3291f8626d87cf588aed2a2f92819168
parent5118aa3a7c99bb5655957cd50807ba32493e3c68 (diff)
fix: missing ext
-rw-r--r--public/emotesets.php1
-rw-r--r--public/users.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/public/emotesets.php b/public/emotesets.php
index 5405f52..6fdee82 100644
--- a/public/emotesets.php
+++ b/public/emotesets.php
@@ -146,6 +146,7 @@ if ($id == "global") {
$emote_set["emotes"] = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($emote_set["emotes"] as &$e) {
+ $e["ext"] = "webp";
if ($e["uploaded_by"]) {
$stmt = $db->prepare("SELECT id, username FROM users WHERE id = ?");
$stmt->execute([$e["uploaded_by"]]);
diff --git a/public/users.php b/public/users.php
index 1fbc6de..933ada4 100644
--- a/public/users.php
+++ b/public/users.php
@@ -180,6 +180,7 @@ while ($row = $stmt->fetch()) {
$emote_set_emotes = $em_stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($emote_set_emotes as &$e) {
+ $e["ext"] = "webp";
if ($e["uploaded_by"]) {
$uploaded_by_stmt = $db->prepare("SELECT id, username FROM users WHERE id = ?");
$uploaded_by_stmt->execute([$e["uploaded_by"]]);