From 19c096cd6715baae72c3ee9bb2e6a4a3595d325b Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Tue, 5 Feb 2019 17:02:28 -0500 Subject: [PATCH] add support for mail routes on new domains --- controller/Controller.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/controller/Controller.class.php b/controller/Controller.class.php index e892d54a..20a03e8e 100644 --- a/controller/Controller.class.php +++ b/controller/Controller.class.php @@ -77,12 +77,15 @@ class Controller return static::redirect('https://discord.gg/Z3bERWA'); } + /* + * this is kind of a hack? unsure, so it probably is + */ $hostName = $_SERVER['HTTP_HOST']; if ($hostName && in_array($hostName, ['lbry.org', 'lbry.tv'])) { - if ($uri !== '/') { + if ($uri !== '/' && substr($uri, 0, 5) !== '/list') { //especially this line return static::redirect('/'); } - switch($hostName) { + switch ($hostName) { case 'lbry.org': return ContentActions::executeOrg(); case 'lbry.tv':