diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-27 15:08:27 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-27 15:08:27 -0700 |
commit | 35b6c2baad74c28a993e6cd1008bc0d66e7361ae (patch) | |
tree | 0e05403f1f280fa497b17b17f7dd4ba996ef7458 /include/import.php | |
parent | a92f22a4a40e2ad2c01ffa86be899bc20d991ce0 (diff) | |
download | volse-hubzilla-35b6c2baad74c28a993e6cd1008bc0d66e7361ae.tar.gz volse-hubzilla-35b6c2baad74c28a993e6cd1008bc0d66e7361ae.tar.bz2 volse-hubzilla-35b6c2baad74c28a993e6cd1008bc0d66e7361ae.zip |
Hard fail imports of removed channels. This is silly.
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 5 |
1 files changed, 5 insertions, 0 deletions
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']); |