summaryrefslogtreecommitdiff
path: root/public/emotes/index.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-02 18:35:09 +0500
committerilotterytea <iltsu@alright.party>2025-05-02 18:35:09 +0500
commit0c25e3dd54225b126ad8e48e10f4fbde8ce26ec5 (patch)
treedb7fc3d7c73f96a236eafd12c4255b1835ab3cdd /public/emotes/index.php
parent9c7e8c24f8273f70d743ae44034a01da352a88e9 (diff)
feat: emote approval
Diffstat (limited to 'public/emotes/index.php')
-rw-r--r--public/emotes/index.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php
index 1606b17..2102aba 100644
--- a/public/emotes/index.php
+++ b/public/emotes/index.php
@@ -357,10 +357,19 @@ if (CLIENT_REQUIRES_JSON) {
<tr>
<th>Visibility</th>
<td><?php
- if ($emote->get_visibility() == 1) {
- echo 'Public';
- } else {
- echo 'Unlisted';
+ switch ($emote->get_visibility()) {
+ case 0:
+ echo 'Unlisted';
+ break;
+ case 1:
+ echo 'Public';
+ break;
+ case 2:
+ echo 'Pending approval (unlisted for a moment)';
+ break;
+ default:
+ echo 'N/A';
+ break;
}
?></td>
</tr>