vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r23200: LJSUP-13850: Dynamic lj-cut looks incorr...

Committer: vad
LJSUP-13850: Dynamic lj-cut looks incorrectly in e-mail
U   trunk/cgi-bin/LJ/Comment.pm
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/LJ/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Comment.pm	2012-10-25 14:16:42 UTC (rev 23199)
+++ trunk/cgi-bin/LJ/Comment.pm	2012-10-25 14:26:42 UTC (rev 23200)
@@ -1515,7 +1515,7 @@
 
     # add specific for HTML params
     $t->param(parent_text        => LJ::Talk::Post::blockquote($parent ? $parent->body_html
-                                                                       : $entry->event_html ));
+                                                                       : $entry->event_html({ no_ljcut_collapse => 1 }) ));
     $t->param(poster_text        => LJ::Talk::Post::blockquote($self->body_html));
 
     my $email_subject = $self->subject_html;

Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-10-25 14:16:42 UTC (rev 23199)
+++ trunk/cgi-bin/cleanhtml.pl	2012-10-25 14:26:42 UTC (rev 23200)
@@ -760,7 +760,9 @@
                         }
                         $data_ids = qq(data-widget='ljcut' data-widget-options='{ "journalid": "$journalid", "ditemid": "$ditemid", "cutid": "$cutcount" }');
                     }
-                    $newdata .= "<b $data_ids class=\"ljcut-link lj-widget\"><span class='ljcut-brace'>(&nbsp;</span><span class=\"ljcut-decor\"><a href=\"$url#cutid$cutcount\" class=\"ljcut-link-expand\">$etext</a><a href=\"$url#cutid$cutcount\" class=\"ljcut-link-collapse\">".Encode::decode_utf8(LJ::Lang::ml("ljcut.collapse"))."</a></span><span class='ljcut-brace'>&nbsp;)</span></b>";
+                    $newdata .= "<b $data_ids class=\"ljcut-link lj-widget\"><span class='ljcut-brace'>(&nbsp;</span><span class=\"ljcut-decor\"><a href=\"$url#cutid$cutcount\" class=\"ljcut-link-expand\">$etext</a>";
+                    $newdata .= "<a href=\"$url#cutid$cutcount\" class=\"ljcut-link-collapse\">".Encode::decode_utf8(LJ::Lang::ml("ljcut.collapse"))."</a>" unless $opts->{no_ljcut_collapse};
+                    $newdata .= "</span><span class='ljcut-brace'>&nbsp;)</span></b>";
                     $newdata .= "</div>" if $tag eq "div";
                     unless ($opts->{'cutpreview'}) {
                         push @eatuntil, $tag;

Tags: livejournal, pl, pm, vad, vadvs
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 

  • 1 comment