aboutsummaryrefslogtreecommitdiffstats
path: root/util/dcp
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-20 21:24:58 -0700
committerzotlabs <mike@macgirvin.com>2017-08-20 21:24:58 -0700
commit31e62bd19e2fcfe70487ab38ee6b688e48a79c95 (patch)
tree69a4b2308cf0dac50001ee012eb7405cd1969c31 /util/dcp
parent52c6ea51152b6255b45ffb68181fa63413a6fffc (diff)
downloadvolse-hubzilla-31e62bd19e2fcfe70487ab38ee6b688e48a79c95.tar.gz
volse-hubzilla-31e62bd19e2fcfe70487ab38ee6b688e48a79c95.tar.bz2
volse-hubzilla-31e62bd19e2fcfe70487ab38ee6b688e48a79c95.zip
a few file activities were not getting synced
Diffstat (limited to 'util/dcp')
-rwxr-xr-xutil/dcp9
1 files changed, 7 insertions, 2 deletions
diff --git a/util/dcp b/util/dcp
index 86c25259f..14ff5d5d3 100755
--- a/util/dcp
+++ b/util/dcp
@@ -54,10 +54,12 @@ if($argc != 3) {
$folder = $x['data']['hash'];
}
+ $hash = random_string();
+
$arr = [
'src' => $srcfile,
'filename' => basename($srcfile),
- 'hash' => random_string(),
+ 'hash' => $hash,
'allow_cid' => $channel['channel_allow_cid'],
'allow_gid' => $channel['channel_allow_gid'],
'deny_cid' => $channel['channel_deny_cid'],
@@ -70,4 +72,7 @@ if($argc != 3) {
attach_store($channel,$channel['channel_hash'],'import',$arr);
-
+ $sync = attach_export_data($channel,$hash);
+ if($sync)
+ build_sync_packet($channel['channel_id'],array('file' => array($sync)));
+