From 4facae674d0f0047339860cb7011d8a13b3e601d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 15 Aug 2016 13:18:25 -0700 Subject: fix attached photo/file permissions on clones --- include/import.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 5bbed828f..84881a420 100644 --- a/include/import.php +++ b/include/import.php @@ -629,6 +629,10 @@ function import_items($channel,$items,$sync = false,$relocate = null) { $item_result = item_store($item,$allow_code,$deliver); } + fix_attached_photo_permissions($channel['channel_id'],$item['author_xchan'],$item['body'],$item['allow_cid'],$item['allow_gid'],$item['deny_cid'],$item['deny_gid']); + + fix_attached_file_permissions($channel,$item['author_xchan'],$item['body'],$item['allow_cid'],$item['allow_gid'],$item['deny_cid'],$item['deny_gid']); + if($sync && $item['item_wall']) { // deliver singletons if we have any if($item_result && $item_result['success']) { -- cgit v1.2.3