diff options
author | redmatrix <git@macgirvin.com> | 2016-04-06 18:46:29 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-06 18:46:29 -0700 |
commit | 9831ad515d7963bcfe1f6298a5176fa29bc28f14 (patch) | |
tree | fc8f11203334a38ed8b43d72f30e05678d88f523 /include | |
parent | 6650916435cd55c637c97468a9003c01b0b7c704 (diff) | |
download | volse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.tar.gz volse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.tar.bz2 volse-hubzilla-9831ad515d7963bcfe1f6298a5176fa29bc28f14.zip |
file sync testing continued
Diffstat (limited to 'include')
-rw-r--r-- | include/import.php | 4 |
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; |