disable file notifications on initial upload for now - it can behave funky when uploading multiple small files at once

This commit is contained in:
git-marijus
2017-07-31 02:35:46 +02:00
parent b4efe8ad8d
commit 988371be0b
2 changed files with 4 additions and 4 deletions

View File

@@ -888,9 +888,9 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
}
if($notify) {
$cloudPath = z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['0']['display_path'];
$object = get_file_activity_object($channel['channel_id'], $r['0']['hash'], $cloudPath);
file_activity($channel['channel_id'], $object, $r['0']['allow_cid'], $r['0']['allow_gid'], $r['0']['deny_cid'], $r['0']['deny_gid'], 'post', $notify);
//$cloudPath = z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['0']['display_path'];
//$object = get_file_activity_object($channel['channel_id'], $r['0']['hash'], $cloudPath);
//file_activity($channel['channel_id'], $object, $r['0']['allow_cid'], $r['0']['allow_gid'], $r['0']['deny_cid'], $r['0']['deny_gid'], 'post', $notify);
}
return $ret;