From 35b6c2baad74c28a993e6cd1008bc0d66e7361ae Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 27 Mar 2018 15:08:27 -0700 Subject: Hard fail imports of removed channels. This is silly. --- include/import.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 9920df8be..d8b7030b6 100644 --- a/include/import.php +++ b/include/import.php @@ -21,6 +21,11 @@ function import_channel($channel, $account_id, $seize) { $channel['channel_removed'] = (($channel['channel_pageflags'] & 0x8000) ? 1 : 0); } + if(intval($channel['channel_removed'])) { + notice( t('Unable to import a removed channel.') . EOL); + return false; + } + // Ignore the hash provided and re-calculate $channel['channel_hash'] = make_xchan_hash($channel['channel_guid'],$channel['channel_guid_sig']); -- cgit v1.2.3