diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-26 15:46:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-26 15:46:16 +0500 |
| commit | 00ab9aeaf0eac4c82e6480faee70add916db514f (patch) | |
| tree | 6b17af9db0f130d7c4c9b163c41ae958d0c2af16 | |
| parent | 4a8bca1bcfa18fd42b238760760bcba80d9eb05a (diff) | |
fix: set limit for emoteset preview
| -rw-r--r-- | public/users.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/users.php b/public/users.php index 9754b91..4876a0f 100644 --- a/public/users.php +++ b/public/users.php @@ -371,7 +371,8 @@ if ($is_json) { <div> <?php - foreach ($set_row["emotes"] as $e) { + for ($i = 0; $i < clamp(count($set_row["emotes"]), 0, 5); $i++) { + $e = &$set_row["emotes"][$i]; echo '<img src="/static/userdata/emotes/' . $e["id"] . '/1x.' . $e["ext"] . '">'; } ?> |
