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))) {
|
if (preg_match("/$source/", mb_strtolower($status->source))) {
|
||||||
common_debug($this->name() . ' - Skipping import of status ' .
|
common_debug($this->name() . ' - Skipping import of status ' .
|
||||||
$status->id . ' with source ' . $source);
|
$status->id . ' with source ' . $source);
|
||||||
continue;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't save it if the user is protected
|
// Don't save it if the user is protected
|
||||||
// FIXME: save it but treat it as private
|
// FIXME: save it but treat it as private
|
||||||
if ($status->user->protected) {
|
if ($status->user->protected) {
|
||||||
continue;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$notice = $this->saveStatus($status);
|
$notice = $this->saveStatus($status);
|
||||||
|
Loading…
Reference in New Issue
Block a user