aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-03 14:11:14 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-03 14:11:14 +0200
commitcd829c096bf355a0502a89fe475eeaae1dd0a72f (patch)
tree94fe36cb7c452b27b7791e1eb120c09b2c605f71
parent59ee045c2467010dab4c24dba96022ecda783b5e (diff)
downloadvolse-hubzilla-cd829c096bf355a0502a89fe475eeaae1dd0a72f.tar.gz
volse-hubzilla-cd829c096bf355a0502a89fe475eeaae1dd0a72f.tar.bz2
volse-hubzilla-cd829c096bf355a0502a89fe475eeaae1dd0a72f.zip
update directory on cover photo changes
-rw-r--r--Zotlabs/Module/Cover_photo.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php
index 7957d112c..d97014f9c 100644
--- a/Zotlabs/Module/Cover_photo.php
+++ b/Zotlabs/Module/Cover_photo.php
@@ -68,7 +68,10 @@ class Cover_photo extends \Zotlabs\Web\Controller {
if($sync)
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
}
-
+
+ // Update directory in background
+ \Zotlabs\Daemon\Master::Summon(array('Directory',$channel['channel_id']));
+
goaway(z_root() . '/cover_photo');
}
@@ -228,7 +231,9 @@ class Cover_photo extends \Zotlabs\Web\Controller {
$sync = attach_export_data($channel,$base_image['resource_id']);
if($sync)
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
-
+
+ // Update directory in background
+ \Zotlabs\Daemon\Master::Summon(array('Directory',$channel['channel_id']));
}
else
notice( t('Unable to process image') . EOL);