mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
add support for mail routes on new domains
This commit is contained in:
parent
18aa28a59b
commit
19c096cd67
1 changed files with 5 additions and 2 deletions
|
@ -77,12 +77,15 @@ class Controller
|
||||||
return static::redirect('https://discord.gg/Z3bERWA');
|
return static::redirect('https://discord.gg/Z3bERWA');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* this is kind of a hack? unsure, so it probably is
|
||||||
|
*/
|
||||||
$hostName = $_SERVER['HTTP_HOST'];
|
$hostName = $_SERVER['HTTP_HOST'];
|
||||||
if ($hostName && in_array($hostName, ['lbry.org', 'lbry.tv'])) {
|
if ($hostName && in_array($hostName, ['lbry.org', 'lbry.tv'])) {
|
||||||
if ($uri !== '/') {
|
if ($uri !== '/' && substr($uri, 0, 5) !== '/list') { //especially this line
|
||||||
return static::redirect('/');
|
return static::redirect('/');
|
||||||
}
|
}
|
||||||
switch($hostName) {
|
switch ($hostName) {
|
||||||
case 'lbry.org':
|
case 'lbry.org':
|
||||||
return ContentActions::executeOrg();
|
return ContentActions::executeOrg();
|
||||||
case 'lbry.tv':
|
case 'lbry.tv':
|
||||||
|
|
Loading…
Add table
Reference in a new issue