2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[livejournal] r19470: LJM-1886: incorect link to main page

Committer: slobin
LJM-1886: incorect link to main page

M Talk.pm
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-07-13 05:55:26 UTC (rev 19469)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-07-14 02:46:46 UTC (rev 19470)
@@ -2059,6 +2059,17 @@
 
     push @opts, 'reply';
 
+    my $controller = LJ::Mob::Controller::ReadPost->new;
+
+    # emulating controller work
+    if($opts->{form}{mobile_domain} =~ m!^0.$LJ::DOMAIN!) {
+        if(my $location = $controller->check_access('zero', LJ::get_remote_ip())) {
+            BML::redirect($location);
+        }
+
+        LJ::Request->notes(branding_id => 'zero');
+    }
+
     # run controller
     my $controller = LJ::Mob::Controller::ReadPost->new;
     $controller->_user(LJ::get_remote());

Tags: 2heoh, 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