aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile_photo.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2017-02-13 20:38:11 -0500
committerAndrew Manning <tamanning@zoho.com>2017-02-13 20:38:11 -0500
commit69b08a20625ab49fb562f47a651cff7d554d000e (patch)
tree0b68c79a135cdc6da5c0f4df5fa32e133c97b615 /Zotlabs/Module/Profile_photo.php
parent05fd5eb8be51ca1fee7b9ec108e87d3599833797 (diff)
parent8ed0913df61abdc9963a3f3e1b181ce695e273b5 (diff)
downloadvolse-hubzilla-69b08a20625ab49fb562f47a651cff7d554d000e.tar.gz
volse-hubzilla-69b08a20625ab49fb562f47a651cff7d554d000e.tar.bz2
volse-hubzilla-69b08a20625ab49fb562f47a651cff7d554d000e.zip
Merge remote-tracking branch 'upstream/dev' into doco
Diffstat (limited to 'Zotlabs/Module/Profile_photo.php')
-rw-r--r--Zotlabs/Module/Profile_photo.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index 5b88f67f5..29a239f4d 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -180,6 +180,10 @@ class Profile_photo extends \Zotlabs\Web\Controller {
dbesc(datetime_convert()),
dbesc($channel['xchan_hash'])
);
+
+ photo_profile_setperms(local_channel(),$base_image['resource_id'],$_REQUEST['profile']);
+
+
// Similarly, tell the nav bar to bypass the cache and update the avater image.
$_SESSION['reload_avatar'] = true;
@@ -188,9 +192,6 @@ class Profile_photo extends \Zotlabs\Web\Controller {
// Update directory in background
\Zotlabs\Daemon\Master::Summon(array('Directory',$channel['channel_id']));
- // Now copy profile-permissions to pictures, to prevent privacyleaks by automatically created folder 'Profile Pictures'
-
- profile_photo_set_profile_perms(local_channel(),$_REQUEST['profile']);
}
else
notice( t('Unable to process image') . EOL);
@@ -338,7 +339,8 @@ class Profile_photo extends \Zotlabs\Web\Controller {
dbesc($channel['xchan_hash'])
);
- profile_photo_set_profile_perms(local_channel()); // Reset default photo permissions to public
+ photo_profile_setperms(local_channel(),$resource_id,$_REQUEST['profile']);
+
\Zotlabs\Daemon\Master::Summon(array('Directory',local_channel()));
goaway(z_root() . '/profiles');
}