diff options
author | Mario <mario@mariovavti.com> | 2020-09-23 12:14:16 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-09-23 12:14:16 +0000 |
commit | 5edec37d571b79dc4fcc30aac1c48b2fc1ae66c9 (patch) | |
tree | d83cecd5e1a0bce7f33b6e6c947243e470833908 /include | |
parent | 42ef6208c14ac579c1071ea880664dbcd42df907 (diff) | |
download | volse-hubzilla-5edec37d571b79dc4fcc30aac1c48b2fc1ae66c9.tar.gz volse-hubzilla-5edec37d571b79dc4fcc30aac1c48b2fc1ae66c9.tar.bz2 volse-hubzilla-5edec37d571b79dc4fcc30aac1c48b2fc1ae66c9.zip |
5.0RC testing: comment out global remove
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php index 9424c8550..a51404652 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2715,6 +2715,9 @@ function account_remove($account_id, $local = true, $unset_session = true) { logger('account_remove: ' . $account_id); + // Global removal (all clones) not currently supported + $local = true; + if(! intval($account_id)) { logger('No account.'); return false; @@ -2775,6 +2778,11 @@ function channel_remove($channel_id, $local = true, $unset_session = false) { if(! $channel_id) return; + // global removal (all clones) not currently supported + // hence this operation _may_ leave orphan data on remote servers + + $local = true; + logger('Removing channel: ' . $channel_id); logger('local only: ' . intval($local)); @@ -2793,6 +2801,7 @@ function channel_remove($channel_id, $local = true, $unset_session = false) { */ call_hooks('channel_remove', $r[0]); +/* if(! $local) { if(intval($r[0]['channel_removed'])) { @@ -2825,7 +2834,7 @@ function channel_remove($channel_id, $local = true, $unset_session = false) { Master::Summon(array('Notifier','purge_all',$channel_id)); } - +*/ $r = q("select iid from iconfig left join item on item.id = iconfig.iid where item.uid = %d", @@ -2929,7 +2938,6 @@ function channel_remove($channel_id, $local = true, $unset_session = false) { //remove from file system - $f = 'store/' . $channel['channel_address']; if(is_dir($f)) { @rrmdir($f); |