Do not crosspost imported entries.

        Patch by exor674. 

diffs (20 lines):

diff -r eb5de5207217 -r fcc0c7a3a20c cgi-bin/ljprotocol.pl
--- a/cgi-bin/ljprotocol.pl     Wed Oct 14 04:14:57 2009 +0000
+++ b/cgi-bin/ljprotocol.pl     Thu Oct 15 03:25:08 2009 +0000
@@ -1033,6 +1033,7 @@ sub postevent
         $flags->{nonotify} = 1;
         $flags->{noauth} = 1;
         $flags->{usejournal_okay} = 1;
+        $flags->{no_xpost} = 1;
     }
 
     return undef unless LJ::run_hook('post_noauth', $req) || 
authenticate($req, $err, $flags);
@@ -1546,7 +1547,7 @@ sub postevent
 
     my $entry = LJ::Entry->new($uowner, jitemid => $jitemid, anum => $anum);
 
-    if ( $u->equals( $uowner ) && $req->{xpost} ne '0' ) {
+    if ( $u->equals( $uowner ) && $req->{xpost} ne '0' && ! $flags->{no_xpost} 
) {
         schedule_xposts( $u, $ditemid, 0, sub { ((shift)->xpostbydefault, {}) 
} );
     }
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to