Don't call precrosspost_hook on unknown sites.
Patch by afuna.
diffs (13 lines):
diff -r 3040b4b921c5 -r f0756414a09c
cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--- a/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm Sun Jul 05 11:01:43
2009 +0000
+++ b/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm Sun Jul 05 12:10:13
2009 +0000
@@ -313,7 +313,8 @@ sub entry_to_req {
$req->{props}->{useragent} = "Dreamwidth Crossposter";
# do any per-site preprocessing
- $req = $extacct->externalsite->pre_crosspost_hook( $req );
+ $req = $extacct->externalsite->pre_crosspost_hook( $req )
+ if $extacct->externalsite;
return $req;
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog