Detect and abort attempts to crosspost invalid entries.

        Patch by fu. 

diffs (12 lines):

diff -r 64dbecb7fe3f -r daca6070e1a4 cgi-bin/DW/Worker/XPostWorker.pm
--- a/cgi-bin/DW/Worker/XPostWorker.pm  Sun Jan 16 20:14:09 2011 -0600
+++ b/cgi-bin/DW/Worker/XPostWorker.pm  Sun Jan 16 20:45:02 2011 -0600
@@ -66,7 +66,7 @@ sub work {
     return $job->failed("Unable to load account $acctid for uid $uid") unless 
defined $acct;
 
     my $entry = LJ::Entry->new($u, ditemid => $ditemid);
-    return $job->failed("Unable to load entry $ditemid for uid $uid") unless 
defined $entry;
+    return $job->failed("Unable to load entry $ditemid for uid $uid") unless 
defined $entry && $entry->valid;
 
     my %auth;
     if ($auth_response) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to