madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21261: LJSUP-11374: Remove link "Leave comment"...

Committer: sbelyaev
LJSUP-11374: Remove link "Leave comment" on delayed entry form
U   trunk/htdocs/preview/entry.bml
Modified: trunk/htdocs/preview/entry.bml
===================================================================
--- trunk/htdocs/preview/entry.bml	2012-02-28 11:56:21 UTC (rev 21260)
+++ trunk/htdocs/preview/entry.bml	2012-02-28 12:14:04 UTC (rev 21261)
@@ -261,14 +261,19 @@
 
         my $userpic = LJ::S2::Image_userpic($up, 0, $req{'prop_picture_keyword'});
 
+        my $comments_enabled = ($u->{'opt_showtalklinks'} eq "Y" &&
+                                  ! $req{'prop_opt_nocomments'}  ) ? 1 : 0;
+
+        if ($delayed_id) {
+            $comments_enabled = 0;
+        }
+
         my $comments = LJ::S2::CommentInfo({
             'read_url' => "#",
             'post_url' => "#",
             'count' => "0",
             'maxcomments' => 0,
-            'enabled' => ($u->{'opt_showtalklinks'} eq "Y" &&
-                          ! $req{'prop_opt_nocomments'}
-                          ) ? 1 : 0,
+            'enabled' => $comments_enabled,
             'locked' => ($u->{'opt_showtalklinks'} eq "Y" &&
                           ! $req{'prop_opt_nocomments'} &&
                           ! $req{'prop_opt_lockcomments'}

Tags: bml, livejournal, madeon, sbelyaev
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