Another fix for the xpost footer appearing when it shouldn't. This
should make it properly obedient.
Patch by ysobel.
diffs (18 lines):
diff -r 2a5a2c6ea216 -r 429488b55141
cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--- a/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm Mon Jul 13 07:05:58
2009 +0000
+++ b/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm Mon Jul 13 21:06:48
2009 +0000
@@ -178,11 +178,12 @@ sub crosspost {
$footer_text = "\n\n" . LJ::Lang::ml(
"xpost.redirect.comment", { postlink => $entry->url } );
}
- } elsif ( $xpostfootprop eq "D" && $disabling_comments ) {
+ } elsif ( $xpostfootprop eq "D" ) {
+
+ $adding_footer = 1 if $disabling_comments;
# we are only adding a footer if comments are disabled
# (and they are)
- $adding_footer = 1;
if ( $footer_text ) {
my $url = $entry->url;
$footer_text =~ s/%%url%%/$url/gi;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog