diff options
| -rw-r--r-- | public/emotesets.php | 1 | ||||
| -rw-r--r-- | public/users.php | 1 |
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"]]); |
