kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-06-07 01:15 am

[dw-free] LJ Crosspost fails on first attempt

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

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

Fix hashref assignment syntax.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--------------------------------------------------------------------------------
diff -r 052addb14534 -r e12b62f047d5 cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--- a/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm	Sun Jun 06 19:54:47 2010 -0500
+++ b/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm	Sun Jun 06 20:14:56 2010 -0500
@@ -250,7 +250,7 @@ sub crosspost {
     # crosspost, update, or delete
     my $xpost_result = $self->call_xmlrpc($proxyurl, $itemid ? 'editevent' : 'postevent', $req, $auth);
     if ($xpost_result->{success}) {
-        my $reference->{itemid} = $xpost_result->{result}->{itemid};
+        my $reference = { itemid => $xpost_result->{result}->{itemid} };
         if ( $extacct->recordlink ) {
             $reference->{url} = $xpost_result->{result}->{url};
         }
--------------------------------------------------------------------------------

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