Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r20756: LJSUP-10671: Incorrect working commentin...

Committer: anazarov
LJSUP-10671: Incorrect working commenting form. Button "Post comment" was disabled
U   trunk/cgi-bin/LJ/Talk.pm
U   trunk/htdocs/talkpost_do.bml
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-12-12 07:34:36 UTC (rev 20755)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-12-12 08:46:27 UTC (rev 20756)
@@ -1800,6 +1800,7 @@
         'journal'      => $journalu->username,
         'stylemine'    => $opts->{'stylemine'},
         'editid'       => $editid,
+        'talkpost_do'  => $opts->{'talkpost_do'}? 1 : 0,
     );
 
     # rate limiting challenge

Modified: trunk/htdocs/talkpost_do.bml
===================================================================
--- trunk/htdocs/talkpost_do.bml	2011-12-12 07:34:36 UTC (rev 20755)
+++ trunk/htdocs/talkpost_do.bml	2011-12-12 08:46:27 UTC (rev 20756)
@@ -525,12 +525,15 @@
         $add .= '&hidden=screened&message='. $ML{'talk.error.commentscreened'} if $comment->{'state'} eq 'S';
         $add .= '&hidden=spammed&message='.  $ML{'talk.error.commentspammed'}  if $comment->{'state'} eq 'B';
         # LJSUP-10671
-        $user_url = $RQ{'ljentry'}? $user? $user->journal_base : '' : $LJ::SITEROOT;
+        if ( $POST{'talkpost_do'} ) {
+            $user_url = $LJ::SITEROOT;
+        } else {
+            $user_url = $user? $user->journal_base : '';
+        }
         return qq(
 <!DOCTYPE html>
 <html>
 <head></head>
-<body>
 <iframe src="$user_url/xdreceiver.html?type=commentator%2Fsubmit&status=$status&result=$result$add" />
 </body>
 </html>

Tags: anazarov, bml, livejournal, nfokz, 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