From 0c25e3dd54225b126ad8e48e10f4fbde8ce26ec5 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 2 May 2025 18:35:09 +0500 Subject: feat: emote approval --- public/emotes/index.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'public/emotes/index.php') 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) { Visibility 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; } ?> -- cgit v1.2.3