aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-25 15:04:17 -0800
committerzotlabs <mike@macgirvin.com>2017-02-25 15:04:59 -0800
commite819727b09f0b0eded552813c8336664b1dd1e1f (patch)
treef932de57c28dd55346450e315da8f947f09ca832 /Zotlabs/Module
parent4b1f87050f9aa7e8b36266d611204581f327e9c9 (diff)
downloadvolse-hubzilla-e819727b09f0b0eded552813c8336664b1dd1e1f.tar.gz
volse-hubzilla-e819727b09f0b0eded552813c8336664b1dd1e1f.tar.bz2
volse-hubzilla-e819727b09f0b0eded552813c8336664b1dd1e1f.zip
send sync packet on profile photo permissions change
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Profile_photo.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index 29a239f4d..438580917 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -183,6 +183,10 @@ class Profile_photo extends \Zotlabs\Web\Controller {
photo_profile_setperms(local_channel(),$base_image['resource_id'],$_REQUEST['profile']);
+ $sync = attach_export_data($channel,$base_image['resource_id']);
+ if($sync)
+ build_sync_packet($channel['channel_id'],array('file' => array($sync)));
+
// Similarly, tell the nav bar to bypass the cache and update the avater image.
$_SESSION['reload_avatar'] = true;
@@ -341,6 +345,11 @@ class Profile_photo extends \Zotlabs\Web\Controller {
photo_profile_setperms(local_channel(),$resource_id,$_REQUEST['profile']);
+ $sync = attach_export_data($channel,$resource_id);
+ if($sync)
+ build_sync_packet($channel['channel_id'],array('file' => array($sync)));
+
+
\Zotlabs\Daemon\Master::Summon(array('Directory',local_channel()));
goaway(z_root() . '/profiles');
}