afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-07-11 07:14 am

[dw-free] crossposter: editing doesn't allow enabling comments

[commit: http://hg.dwscoalition.org/dw-free/rev/9a5a4786176f]

http://bugs.dwscoalition.org/show_bug.cgi?id=947

Explicitly define the value for opt_nocomments.

Patch by [personal profile] allen.

Files modified:
  • cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--------------------------------------------------------------------------------
diff -r 9bd5acd72532 -r 9a5a4786176f cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--- a/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm	Sat Jul 11 06:51:29 2009 +0000
+++ b/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm	Sat Jul 11 07:13:03 2009 +0000
@@ -153,7 +153,7 @@ sub crosspost {
 
         # are we disabling comments?
         my $disabling_comments  = $extacct->owner->prop( 'opt_xpost_disable_comments' ) ? 1 : 0;
-        $req->{props}->{opt_nocomments} = 1 if $disabling_comments;
+        $req->{props}->{opt_nocomments} = $disabling_comments || $req->{props}->{opt_nocomments} || 0;
 
         # are we adding a footer?
         my ( $adding_footer, $footer_text );
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org