aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-09 09:38:36 +0000
committerMario <mario@mariovavti.com>2020-04-09 09:38:36 +0000
commit328685d2fbe505fd5b1bf9892a0cce993210ac52 (patch)
tree5c2a800872074fa86c284e95382dc6d535cfd9b2 /include/attach.php
parent806c738923b9d880af49a1811d8fbf2c2ee36309 (diff)
downloadvolse-hubzilla-328685d2fbe505fd5b1bf9892a0cce993210ac52.tar.gz
volse-hubzilla-328685d2fbe505fd5b1bf9892a0cce993210ac52.tar.bz2
volse-hubzilla-328685d2fbe505fd5b1bf9892a0cce993210ac52.zip
move from build_sync_packet() to Libsync::build_sync_packet()
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 952270949..d986f4af1 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -11,6 +11,8 @@
* @todo Also an 'append' option to the storage function might be a useful addition.
*/
+use Zotlabs\Lib\Libsync;
+
require_once('include/permissions.php');
require_once('include/security.php');
require_once('include/group.php');
@@ -1018,7 +1020,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$sync = attach_export_data($channel,$hash);
if($sync)
- build_sync_packet($channel['channel_id'],array('file' => array($sync)));
+ Libsync::build_sync_packet($channel['channel_id'],array('file' => array($sync)));
}
if($notify) {
@@ -1403,7 +1405,7 @@ function attach_change_permissions($channel_id, $resource, $allow_cid, $allow_gi
$data = attach_export_data($channel,$resource);
if($data)
- build_sync_packet($channel['channel_id'],array('file' => array($data)));
+ Libsync::build_sync_packet($channel['channel_id'],array('file' => array($data)));
}
}