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).

This commit is contained in:
redmatrix
2016-04-06 20:25:52 -07:00
parent 861f5232d3
commit aa0412d83b
3 changed files with 13 additions and 1 deletions

View File

@@ -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;
}