aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filestorage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-20 16:47:38 -0700
committerfriendica <info@friendica.com>2015-03-20 16:47:38 -0700
commit07f8e7049a3f7ccf6c131beb805163a27a5aa886 (patch)
tree58f2184a73d5003329c987ea9a23ff5aba05b5e7 /mod/filestorage.php
parent01716dea3d930e6c6b7dd20d5aa6a7fe94db16d1 (diff)
parentead45292e134fa03726912905ca1ca58ccb12fec (diff)
downloadvolse-hubzilla-07f8e7049a3f7ccf6c131beb805163a27a5aa886.tar.gz
volse-hubzilla-07f8e7049a3f7ccf6c131beb805163a27a5aa886.tar.bz2
volse-hubzilla-07f8e7049a3f7ccf6c131beb805163a27a5aa886.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'mod/filestorage.php')
-rw-r--r--mod/filestorage.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/filestorage.php b/mod/filestorage.php
index 92474f336..f2c795379 100644
--- a/mod/filestorage.php
+++ b/mod/filestorage.php
@@ -32,14 +32,15 @@ function filestorage_post(&$a) {
$str_contact_allow = perms2str($_REQUEST['contact_allow']);
$str_group_deny = perms2str($_REQUEST['group_deny']);
$str_contact_deny = perms2str($_REQUEST['contact_deny']);
-
- attach_change_permissions($channel_id, $resource, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny, $recurse);
- //Build directory tree and redirect
$channel = $a->get_channel();
$cloudPath = get_parent_cloudpath($channel_id, $channel['channel_address'], $resource);
+
+ //get the object before permissions change so we can catch eventual former allowed members
$object = get_file_activity_object($channel_id, $resource, $cloudPath);
+ attach_change_permissions($channel_id, $resource, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny, $recurse);
+
file_activity($channel_id, $object, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny, 'post', $no_activity);
goaway($cloudPath);