From adad8f2ebc026b759710c3f5843460a29ee08fe4 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 Apr 2016 05:20:55 -0700 Subject: getting file sync data - missed parent folder --- include/attach.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/attach.php b/include/attach.php index 1b6bad55b..69adbc546 100644 --- a/include/attach.php +++ b/include/attach.php @@ -864,6 +864,12 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { // This would've been called already with a success result in photos_upload() if it was a photo. call_hooks('photo_upload_end',$ret); } + + $sync = attach_export_data($channel,$hash); + + if($sync) + build_sync_packet(0,array('file' => array($sync))); + return $ret; } @@ -1833,7 +1839,7 @@ function attach_export_data($channel,$resource_id) { if($hash_ptr === $resource_id) $attach_ptr = $r[0]; - $hash_ptr = $r[0]['parent']; + $hash_ptr = $r[0]['folder']; $paths[] = $r[0]; } while($hash_ptr); -- cgit v1.2.3