aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-06 18:38:48 -0700
committerredmatrix <git@macgirvin.com>2016-04-06 18:38:48 -0700
commit6650916435cd55c637c97468a9003c01b0b7c704 (patch)
tree896a2d4196caf1622b2d20ff4be0ab068503fb4e
parent64cc0b794a9678b634ca8bdc85d99ab258158624 (diff)
downloadvolse-hubzilla-6650916435cd55c637c97468a9003c01b0b7c704.tar.gz
volse-hubzilla-6650916435cd55c637c97468a9003c01b0b7c704.tar.bz2
volse-hubzilla-6650916435cd55c637c97468a9003c01b0b7c704.zip
file sync testing
-rw-r--r--include/attach.php4
-rw-r--r--include/zot.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index b6b56db34..aabcd2744 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1859,8 +1859,8 @@ function attach_export_data($channel,$resource_id) {
intval($channel['channel_id'])
);
if($r) {
- foreach($r as $rr) {
- $rr['data'] = base64_encode($rr['data']);
+ for($x = 0; $x < count($r); $x ++) {
+ $r[$x]['data'] = base64_encode($r[$x]['data']);
}
$ret['photo'] = $r;
}
diff --git a/include/zot.php b/include/zot.php
index fa3563085..a5ab56154 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3138,6 +3138,9 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
if(array_key_exists('menu',$arr) && $arr['menu'])
sync_menus($channel,$arr['menu']);
+ if(array_key_exists('file',$arr) && $arr['file'])
+ sync_files($channel,$arr['file']);
+
if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) {
if(array_key_exists('channel_pageflags',$arr['channel']) && intval($arr['channel']['channel_pageflags'])) {