mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-11-11 11:59 am

[dw-free] Community importer fails to import certain entries

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

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

Fix broken logic that prevents some posts from being imported during a
community import.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm
--------------------------------------------------------------------------------
diff -r ba33322ecc17 -r b510e43dbfcd cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm
--- a/cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm	Tue Nov 10 05:03:48 2009 +0000
+++ b/cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm	Wed Nov 11 11:59:30 2009 +0000
@@ -231,7 +231,7 @@ sub try_work {
 
             # now try to determine if we need to post this as a user
             my $posteru;
-            if ( $evt->{poster} && $evt->{poster} ne $data->{username} ) {
+            if ( $data->{usejournal} ) {
                 my $posterid = exists $user_map{$evt->{poster}} ? $user_map{$evt->{poster}} :
                     DW::Worker::ContentImporter::LiveJournal->remap_username_friend( $data, $evt->{poster} );
 
--------------------------------------------------------------------------------
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-11-11 12:17 pm (UTC)(link)
Community importing? *is very excited*
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-11-11 12:54 pm (UTC)(link)
Cool. I wonder what my chances are of persuading [livejournal.com profile] redial_the_gate or [livejournal.com profile] stargateficrec to move. Those are the main comms I go back to LJ for these days.