move the zot6 delivery to zot_fetch where it makes more sense. Exhaustively hand tested.

This commit is contained in:
zotlabs
2018-02-20 17:18:08 -08:00
parent 441cdeff3f
commit 02575f46a6
2 changed files with 8 additions and 3 deletions

View File

@@ -2553,10 +2553,10 @@ function channel_remove($channel_id, $local = true, $unset_session = false) {
q("DELETE FROM profile WHERE uid = %d", intval($channel_id));
q("DELETE FROM src WHERE src_channel_id = %d", intval($channel_id));
$r = q("select resource_id FROM attach WHERE uid = %d", intval($channel_id));
$r = q("select hash FROM attach WHERE uid = %d", intval($channel_id));
if($r) {
foreach($r as $rv) {
attach_delete($channel_id,$rv['resource_id']);
attach_delete($channel_id,$rv['hash']);
}
}