summaryrefslogtreecommitdiff
path: root/public/users.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-28 00:58:53 +0500
committerilotterytea <iltsu@alright.party>2025-04-28 00:58:53 +0500
commit5ab2480c609b3f2540f5eb840e9cf3eb0589317d (patch)
tree1933c6f206767c60515d85993bc9ef023fdd4a12 /public/users.php
parent067348835299febed3080ab61ffca365cd07743f (diff)
feat: display emote's author name
Diffstat (limited to 'public/users.php')
-rw-r--r--public/users.php6
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>';
}
?>