From aa0412d83bd4ffb1e5208020ccae269e7cc13a3b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 Apr 2016 20:25:52 -0700 Subject: use the explicit form of build_sync_packet so that file/photo sync will work even when the actual observer is a guest (with permission to upload). --- include/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/attach.php') diff --git a/include/attach.php b/include/attach.php index aabcd2744..8d8cfe65f 100644 --- a/include/attach.php +++ b/include/attach.php @@ -868,7 +868,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $sync = attach_export_data($channel,$hash); if($sync) - build_sync_packet(0,array('file' => array($sync))); + build_sync_packet($channel['channel_id'],array('file' => array($sync))); return $ret; } -- cgit v1.2.3