aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-28 18:18:35 +0000
committerMario <mario@mariovavti.com>2024-06-28 18:18:35 +0000
commit464149e22d2654fc548e4c7090358d9007bc8031 (patch)
tree7ea05cf83f83902e15e24c4e4b8e4e614eee7eb2 /Zotlabs
parent30ba0661aa591b860ee4d7e38cee0a8ad4c3ea44 (diff)
downloadvolse-hubzilla-464149e22d2654fc548e4c7090358d9007bc8031.tar.gz
volse-hubzilla-464149e22d2654fc548e4c7090358d9007bc8031.tar.bz2
volse-hubzilla-464149e22d2654fc548e4c7090358d9007bc8031.zip
fail to import more gracefully if a channel has already been imported at some point but was deleted again
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Import.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Import.php b/Zotlabs/Module/Import.php
index 24b7498dd..5ace4e72d 100644
--- a/Zotlabs/Module/Import.php
+++ b/Zotlabs/Module/Import.php
@@ -192,6 +192,12 @@ class Import extends Controller {
return;
}
+ if ($channel['channel_removed']) {
+ logger('Channel exists but has been marked removed on this hub. ', print_r($channel,true));
+ notice( t('Channel exists but has been marked removed on this hub. Import failed.') . EOL);
+ return;
+ }
+
if (is_array($data['config'])) {
import_config($channel, $data['config']);
}
@@ -558,7 +564,7 @@ class Import extends Controller {
goaway(z_root() . '/import_progress');
}
- if (!$cf_api_compat) {
+ if ($import_posts && !$cf_api_compat) {
notice(t('Automatic content and files import was not possible due to API version incompatiblity. Please import content and files manually!') . EOL);
}