Browse Source

fix rss accessibility

main
ghost 1 year ago
parent
commit
e20439c91d
  1. 2
      src/public/index.php
  2. 2
      src/public/magnet.php

2
src/public/index.php

@ -72,7 +72,7 @@ else if (!$user = $db->getUser($userId)) @@ -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)

2
src/public/magnet.php

@ -69,7 +69,7 @@ else if (!$magnet = $db->getMagnet(isset($_GET['magnetId']) ? (int) $_GET['magne @@ -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)

Loading…
Cancel
Save