Check the length of the comment body, not the entire notification HTML.
Patch by fu.
diffs (12 lines):
diff -r b05985c7a7d2 -r 197be79b14e5 cgi-bin/LJ/Event/JournalNewComment.pm
--- a/cgi-bin/LJ/Event/JournalNewComment.pm Mon Apr 04 22:19:37 2011 +0800
+++ b/cgi-bin/LJ/Event/JournalNewComment.pm Tue Apr 05 12:05:21 2011 +0800
@@ -219,7 +219,7 @@ sub content {
};
$ret = "<div class='actions_top'>" . $self->as_html_actions . "</div>" .
$ret
- if LJ::has_too_many( $ret, linebreaks => 10, chars => 2000 );
+ if LJ::has_too_many( $comment_body, linebreaks => 10, chars => 2000 );
$ret .= $self->as_html_actions;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog