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

[livejournal] r19687: LJM-1918: Redirect to the first comments...

Committer: slobin
LJM-1918: Redirect to the first comments page after commenting

M talkpost_do.bml
U   trunk/htdocs/talkpost_do.bml
Modified: trunk/htdocs/talkpost_do.bml
===================================================================
--- trunk/htdocs/talkpost_do.bml	2011-08-10 08:43:37 UTC (rev 19686)
+++ trunk/htdocs/talkpost_do.bml	2011-08-10 08:56:19 UTC (rev 19687)
@@ -285,9 +285,8 @@
 
         $commentlink = $uri->as_string;
     # need to return on mobile version
-    } elsif ($POST{'mobile_domain'} =~ qr/^\w\.$LJ::DOMAIN$/) {
-        my $mobile_link = LJ::Mob::Uri->find($talkurl);
-        $commentlink = "http://$POST{'mobile_domain'}$mobile_link/comments#comments";
+    } elsif ($POST{'mobile_domain'} =~ qr/^\w\.$LJ::DOMAIN$/ && $POST{'ret'} =~ m!^/([\w\d\/]+)$!) {
+        $commentlink = "http://$POST{'mobile_domain'}$POST{'ret'}#comments";
     } elsif ($POST{'viewing_thread'} eq '') {
         $commentlink = LJ::Talk::talkargs($talkurl, "view=$dtalkid", $stylemine) . "#t$dtalkid";
     } else {

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