aboutsummaryrefslogtreecommitdiffstats
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:17 -0800
commit92615247ac46e708de46651f21a4a179c38068c4 (patch)
treee2538750674878f662e513d59d8d0c628d433ced
parent78ed01f3efabf4ea0b9750ba7db16aaaa4c54981 (diff)
downloadvolse-hubzilla-92615247ac46e708de46651f21a4a179c38068c4.tar.gz
volse-hubzilla-92615247ac46e708de46651f21a4a179c38068c4.tar.bz2
volse-hubzilla-92615247ac46e708de46651f21a4a179c38068c4.zip
send sync packet on profile photo permissions change
-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');
}