Committer: akanashin
LJSUP-12889: Redirect from travel-belline.livejournal.com not workingU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm =================================================================== --- trunk/cgi-bin/Apache/LiveJournal.pm 2012-07-10 14:58:48 UTC (rev 22415) +++ trunk/cgi-bin/Apache/LiveJournal.pm 2012-07-11 06:38:59 UTC (rev 22416) @@ -1183,14 +1183,15 @@ LJ::Request->pnotes ('remote' => LJ::get_remote()); return LJ::Request::NOT_FOUND; # bogus ljconfig } - elsif (my $url = $LJ::DOMAIN_JOURNALS{$user}) { - $url = "http://".$url unless $url =~ m!https?://!; - return redir($url); - } else { my $u = LJ::load_user($user); LJ::set_active_journal($u) if $u; + if ($u && (my $url = $LJ::DOMAIN_JOURNALS{$u->user})) { + $url = "http://".$url unless $url =~ m!https?://!; + return redir($url); + } + my $view = $determine_view->($user, "users", $uri); return $view if defined $view;