aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-06 18:46:29 -0700
committerredmatrix <git@macgirvin.com>2016-04-06 18:46:29 -0700
commit9831ad515d7963bcfe1f6298a5176fa29bc28f14 (patch)
treefc8f11203334a38ed8b43d72f30e05678d88f523 /include/import.php
parent6650916435cd55c637c97468a9003c01b0b7c704 (diff)
downloadvolse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.tar.gz
volse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.tar.bz2
volse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.zip
file sync testing continued
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 83e0a0aa8..332571c27 100644
--- a/include/import.php
+++ b/include/import.php
@@ -895,6 +895,10 @@ function sync_files($channel,$files) {
$newfname = 'store/' . $channel['channel_address'] . '/' . get_attach_binname($att['data']);
+ unset($att['id']);
+ $att['aid'] = $channel['channel_account_id'];
+ $att['uid'] = $channel['channel_id'];
+
if($att['filetype'] === 'multipart/mixed' && $att['is_dir']) {
os_mkdir($newfname, STORAGE_DEFAULT_PERMISSIONS,true);
$att['data'] = $newfname;