]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix a couple 'continue's from old looping code in Twitter importer (-> return null)
authorBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 20:06:32 +0000 (13:06 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 20:06:32 +0000 (13:06 -0700)
plugins/TwitterBridge/twitterimport.php

index 1b2d3953049594c7f242d44b24a18ac407b212a5..07a9cf95f66c9f63f49dccf380ce1a9590bf0fab 100644 (file)
@@ -57,13 +57,13 @@ class TwitterImport
         if (preg_match("/$source/", mb_strtolower($status->source))) {
             common_debug($this->name() . ' - Skipping import of status ' .
                          $status->id . ' with source ' . $source);
-            continue;
+            return null;
         }
 
         // Don't save it if the user is protected
         // FIXME: save it but treat it as private
         if ($status->user->protected) {
-            continue;
+            return null;
         }
 
         $notice = $this->saveStatus($status);