From e20439c91dedad59680519f2c4ee26f24b4554fc Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 11 Sep 2023 05:39:28 +0300 Subject: [PATCH] fix rss accessibility --- src/public/index.php | 2 +- src/public/magnet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/index.php b/src/public/index.php index 3b22ed2..51fe65f 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -72,7 +72,7 @@ else if (!$user = $db->getUser($userId)) } // On first visit, redirect user to the welcome page with access level question -else if (is_null($user->public)) +else if (is_null($user->public) && !isset($_GET['rss'])) { header( sprintf('Location: %s/welcome.php', WEBSITE_URL) diff --git a/src/public/magnet.php b/src/public/magnet.php index 4a63b50..da3efcc 100644 --- a/src/public/magnet.php +++ b/src/public/magnet.php @@ -69,7 +69,7 @@ else if (!$magnet = $db->getMagnet(isset($_GET['magnetId']) ? (int) $_GET['magne } // On first visit, redirect user to the welcome page with access level question -else if (is_null($user->public)) +else if (is_null($user->public) && !isset($_GET['rss'])) { header( sprintf('Location: %s/welcome.php', WEBSITE_URL)