summaryrefslogtreecommitdiff
path: root/public/emotes/index.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-20 10:48:08 +0500
committerilotterytea <iltsu@alright.party>2025-04-20 10:48:08 +0500
commitc474b61f3c741e86a3273b2f4c2017de05eb1085 (patch)
tree731f9da3f21852c1bab44ae6ebb49346762c83ae /public/emotes/index.php
parent3b6c6e5774dec41a16da03d1bb8497b448cfa564 (diff)
feat: show emote uploader
Diffstat (limited to 'public/emotes/index.php')
-rw-r--r--public/emotes/index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php
index c73b3d0..b603cc0 100644
--- a/public/emotes/index.php
+++ b/public/emotes/index.php
@@ -1,5 +1,7 @@
<?php
include "../../src/emote.php";
+include "../../src/accounts.php";
+authorize_user();
function display_list_emotes(int $page, int $limit): array
{
@@ -16,7 +18,8 @@ function display_list_emotes(int $page, int $limit): array
$row["id"],
$row["code"],
$row["ext"],
- intval(strtotime($row["created_at"]))
+ intval(strtotime($row["created_at"])),
+ $row["uploaded_by"]
));
}
@@ -35,7 +38,8 @@ function display_emote(int $id)
$row["id"],
$row["code"],
$row["ext"],
- intval(strtotime($row["created_at"]))
+ intval(strtotime($row["created_at"])),
+ $row["uploaded_by"]
);
}