aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorTreer <treer.git@the-bordello.com>2016-07-03 22:21:48 +1000
committerTreer <treer.git@the-bordello.com>2016-07-03 22:38:05 +1000
commit5c062aaec410ca1d5275a4a7079dadddb82c3097 (patch)
treeff9a7a78a344dcce8a13c2757ec88b41c7feb7d1 /Zotlabs
parentb87106b6fe735365587d7683d8b639e0cf37842c (diff)
downloadvolse-hubzilla-5c062aaec410ca1d5275a4a7079dadddb82c3097.tar.gz
volse-hubzilla-5c062aaec410ca1d5275a4a7079dadddb82c3097.tar.bz2
volse-hubzilla-5c062aaec410ca1d5275a4a7079dadddb82c3097.zip
force immediate avatar update
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Profile_photo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index 9359b80f8..f459f7deb 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -180,6 +180,8 @@ class Profile_photo extends \Zotlabs\Web\Controller {
dbesc(datetime_convert()),
dbesc($channel['xchan_hash'])
);
+ // Similarly, tell the nav bar to bypass the cache and update the avater image.
+ $_SESSION['reload_avatar'] = true;
info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);