force immediate avatar update

This commit is contained in:
Treer
2016-07-03 22:21:48 +10:00
parent b87106b6fe
commit 5c062aaec4
3 changed files with 87 additions and 0 deletions

View File

@@ -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);