aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-15 13:18:25 -0700
committerredmatrix <git@macgirvin.com>2016-08-15 13:18:25 -0700
commit4facae674d0f0047339860cb7011d8a13b3e601d (patch)
treeab0745de308b0d81f24a1366d7d95ac99f494fbd /include/import.php
parent39005634c6f5d4d3e613761e4fafb3997cc65a00 (diff)
downloadvolse-hubzilla-4facae674d0f0047339860cb7011d8a13b3e601d.tar.gz
volse-hubzilla-4facae674d0f0047339860cb7011d8a13b3e601d.tar.bz2
volse-hubzilla-4facae674d0f0047339860cb7011d8a13b3e601d.zip
fix attached photo/file permissions on clones
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php4
1 files changed, 4 insertions, 0 deletions
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']) {