From 988371be0b2df3f917da67f39814e21f96f9f957 Mon Sep 17 00:00:00 2001 From: git-marijus Date: Mon, 31 Jul 2017 02:35:46 +0200 Subject: disable file notifications on initial upload for now - it can behave funky when uploading multiple small files at once --- include/attach.php | 6 +++--- view/tpl/cloud_actionspanel.tpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/attach.php b/include/attach.php index 785969a32..75235d7e1 100644 --- a/include/attach.php +++ b/include/attach.php @@ -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; diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl index fc3e7f82f..baee48da3 100644 --- a/view/tpl/cloud_actionspanel.tpl +++ b/view/tpl/cloud_actionspanel.tpl @@ -26,7 +26,7 @@ - {{include file="field_checkbox.tpl" field=$notify}} + {{**include file="field_checkbox.tpl" field=$notify**}}
{{if $lockstate}} -- cgit v1.2.3