holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22416: LJSUP-12889: Redirect from travel-bellin...

Committer: akanashin
LJSUP-12889: Redirect from travel-belline.livejournal.com not working
U   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;
 

Tags: akanashin, holyandrew, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments