From 84458ca14672d25514970a7ab596cb2e4ff269d6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 9 May 2025 18:00:11 +0500 Subject: feat: options to hide public lists of emotesets and users --- public/emotesets.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'public/emotesets.php') diff --git a/public/emotesets.php b/public/emotesets.php index 6fdee82..69fbea8 100644 --- a/public/emotesets.php +++ b/public/emotesets.php @@ -3,6 +3,7 @@ include_once "../src/utils.php"; include_once "../src/config.php"; include_once "../src/accounts.php"; include_once "../src/partials.php"; +include_once "../src/alert.php"; authorize_user(); $id = $_GET["id"] ?? ""; @@ -50,6 +51,11 @@ if ($id == "global") { } } } else if (intval($id) <= 0 && intval($alias_id) <= 0) { + if (!EMOTESET_PUBLIC_LIST) { + generate_alert("/404.php", "The public list of emotesets is disabled", 403); + exit; + } + $limit = 20; $offset = ($page - 1) * $limit; -- cgit v1.2.3