aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-06 11:25:49 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-06 11:25:49 +0100
commit94e548b07a129fc6a57c38b5d6799e86ca3d34ba (patch)
treeefa7f3d70013388da905f005794c094315c61dd5
parent9cd715bbbf8b02fad21b1f4982c8de7c0e575154 (diff)
downloadvolse-hubzilla-94e548b07a129fc6a57c38b5d6799e86ca3d34ba.tar.gz
volse-hubzilla-94e548b07a129fc6a57c38b5d6799e86ca3d34ba.tar.bz2
volse-hubzilla-94e548b07a129fc6a57c38b5d6799e86ca3d34ba.zip
lets try this in the wild for a while
-rw-r--r--include/attach.php8
-rw-r--r--view/tpl/cloud_actionspanel.tpl2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/attach.php b/include/attach.php
index ab9a15ec2..179a57a90 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -947,9 +947,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;
@@ -1421,7 +1421,7 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
intval($channel_id)
);
- file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', $notify=1);
+ file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true);
return;
}
diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl
index baee48da3..fc3e7f82f 100644
--- a/view/tpl/cloud_actionspanel.tpl
+++ b/view/tpl/cloud_actionspanel.tpl
@@ -26,7 +26,7 @@
<input type="hidden" name="return_url" value="{{$return_url}}" />
<label for="files-upload">{{$upload_header}}</label>
<input class="form-group pull-left" id="files-upload" type="file" name="userfile">
- {{**include file="field_checkbox.tpl" field=$notify**}}
+ {{include file="field_checkbox.tpl" field=$notify}}
<div class="pull-right btn-group">
<div class="btn-group">
{{if $lockstate}}