diff options
author | Mario <mario@mariovavti.com> | 2020-04-29 08:24:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-04-29 08:24:00 +0000 |
commit | c9794439bcdf7bf738055fdecddc754609b8b9ab (patch) | |
tree | b8ec2af7da992c77df65ccbc3ead393461c2140f /include | |
parent | 079c13e6330bc3b4bc3928c55b89023be0af5ad7 (diff) | |
download | volse-hubzilla-c9794439bcdf7bf738055fdecddc754609b8b9ab.tar.gz volse-hubzilla-c9794439bcdf7bf738055fdecddc754609b8b9ab.tar.bz2 volse-hubzilla-c9794439bcdf7bf738055fdecddc754609b8b9ab.zip |
adjust code comments and whitespace
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/attach.php b/include/attach.php index d648293ee..80f71b9ea 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1945,7 +1945,8 @@ function attach_store_item($channel, $observer, $file) { if($r) { // At the moment only file permission edits are possible. - // If permissions did not change do nothing. Otherwise delete the item and create a new one with new permissions. + // Since we do not support permission editing on posts yet, + // we will delete the item and create a new one with the new permissions for now. if($r[0]['allow_cid'] === $file['allow_cid'] && $r[0]['allow_gid'] === $file['allow_gid'] && $r[0]['deny_cid'] === $file['deny_cid'] && $r[0]['deny_gid'] === $file['deny_gid']) { @@ -1967,7 +1968,7 @@ function attach_store_item($channel, $observer, $file) { ]; set_iconfig($r[0], 'attach', 'meta' , $meta, true); - + $post = item_store($arr); $item_id = $post['item_id']; @@ -2046,7 +2047,7 @@ function attach_store_item($channel, $observer, $file) { ]; set_iconfig($arr, 'attach', 'meta' , $meta, true); - + $post = item_store($arr); $item_id = $post['item_id']; |