diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-28 00:58:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-28 00:58:53 +0500 |
| commit | 5ab2480c609b3f2540f5eb840e9cf3eb0589317d (patch) | |
| tree | 1933c6f206767c60515d85993bc9ef023fdd4a12 /public/users.php | |
| parent | 067348835299febed3080ab61ffca365cd07743f (diff) | |
feat: display emote's author name
Diffstat (limited to 'public/users.php')
| -rw-r--r-- | public/users.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/users.php b/public/users.php index 4540f5a..de9bfc8 100644 --- a/public/users.php +++ b/public/users.php @@ -428,7 +428,9 @@ if ($is_json) { foreach ($active_emote_set["emotes"] as $emote_row) { echo '<a class="box emote" href="/emotes?id=' . $emote_row["id"] . '">'; echo '<img src="/static/userdata/emotes/' . $emote_row["id"] . '/2x.' . $emote_row["ext"] . '" alt="' . $emote_row["code"] . '"/>'; - echo '<p>' . $emote_row["code"] . '</p>'; + echo '<h1>' . $emote_row["code"] . '</h1>'; + echo '<p>' . ($emote_row["uploaded_by"] == null ? (ANONYMOUS_DEFAULT_NAME . "*") : $emote_row["uploaded_by"]["username"]) . '</p>'; + echo '</a>'; echo '</a>'; } } else { @@ -453,7 +455,7 @@ if ($is_json) { foreach ($uploaded_emotes as $emote_row) { echo '<a class="box emote" href="/emotes?id=' . $emote_row["id"] . '">'; echo '<img src="/static/userdata/emotes/' . $emote_row["id"] . '/2x.' . $emote_row["ext"] . '" alt="' . $emote_row["code"] . '"/>'; - echo '<p>' . $emote_row["code"] . '</p>'; + echo '<h1>' . $emote_row["code"] . '</h1>'; echo '</a>'; } ?> |
