aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/attach.php8
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);