aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-06 14:20:17 -0800
committerzotlabs <mike@macgirvin.com>2017-12-06 14:20:17 -0800
commitffaab27e77844c47501b9fd8202a6b94792c3686 (patch)
tree16fd0a543431964730f4c5840146cbc439dc349d /Zotlabs
parent157966eb115606ef1d25fc55e90cb25fec1b6333 (diff)
downloadvolse-hubzilla-ffaab27e77844c47501b9fd8202a6b94792c3686.tar.gz
volse-hubzilla-ffaab27e77844c47501b9fd8202a6b94792c3686.tar.bz2
volse-hubzilla-ffaab27e77844c47501b9fd8202a6b94792c3686.zip
synchronise an attach_move operation to clones
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Photos.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php
index 1c42c0510..81af607ec 100644
--- a/Zotlabs/Module/Photos.php
+++ b/Zotlabs/Module/Photos.php
@@ -202,6 +202,11 @@ class Photos extends \Zotlabs\Web\Controller {
);
if(($m) && ($m[0]['folder'] != $_POST['move_to_album'])) {
attach_move($page_owner_uid,argv(2),$_POST['move_to_album']);
+
+ $sync = attach_export_data(\App::$data['channel'],argv(2),true);
+ if($sync)
+ build_sync_packet($page_owner_uid,array('file' => array($sync)));
+
if(! ($_POST['desc'] && $_POST['newtag']))
goaway(z_root() . '/' . $_SESSION['photo_return']);
}