diff options
author | redmatrix <git@macgirvin.com> | 2016-04-06 05:20:55 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-06 05:20:55 -0700 |
commit | adad8f2ebc026b759710c3f5843460a29ee08fe4 (patch) | |
tree | 0921c2db84249da04eb1d140885e20a02d7f9b54 /include | |
parent | fb9c12df1534f8f34400d783904c3003b8e19c46 (diff) | |
download | volse-hubzilla-adad8f2ebc026b759710c3f5843460a29ee08fe4.tar.gz volse-hubzilla-adad8f2ebc026b759710c3f5843460a29ee08fe4.tar.bz2 volse-hubzilla-adad8f2ebc026b759710c3f5843460a29ee08fe4.zip |
getting file sync data - missed parent folder
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 8 |
1 files changed, 7 insertions, 1 deletions
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); |