From 574a01727ec500ee0c6be0965c5021927c802d52 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 2 Oct 2021 12:56:35 +0000 Subject: fix removed channels counted for max id check and disable moving until we decide what to do with it --- Zotlabs/Module/Import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Import.php b/Zotlabs/Module/Import.php index 7898f83a3..eee72b945 100644 --- a/Zotlabs/Module/Import.php +++ b/Zotlabs/Module/Import.php @@ -40,7 +40,7 @@ class Import extends Controller { $data = null; $seize = ((x($_REQUEST, 'make_primary')) ? intval($_REQUEST['make_primary']) : 0); $import_posts = ((x($_REQUEST, 'import_posts')) ? intval($_REQUEST['import_posts']) : 0); - $moving = intval($_REQUEST['moving']); + $moving = false; //intval($_REQUEST['moving']); $src = $_FILES['filename']['tmp_name']; $filename = basename($_FILES['filename']['name']); $filesize = intval($_FILES['filename']['size']); @@ -158,7 +158,7 @@ class Import extends Controller { $max_identities = account_service_class_fetch($account_id, 'total_identities'); if ($max_identities !== false) { - $r = q("select channel_id from channel where channel_account_id = %d", + $r = q("select channel_id from channel where channel_account_id = %d and channel_removed = 0", intval($account_id) ); if ($r && count($r) > $max_identities) { -- cgit v1.2.3