Fix a couple 'continue's from old looping code in Twitter importer (-> return null)
This commit is contained in:
parent
178f3600ed
commit
15b108620e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user