]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
fix twitter title showing up occasionally
[friendica.git] / mod / profile_photo.php
old mode 100644 (file)
new mode 100755 (executable)
index 4de3aaa..e3dbdaf
@@ -86,10 +86,14 @@ function profile_photo_post(&$a) {
                                        intval(local_user())
                                );
 
+                               info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
                                // Update global directory in background
                                $url = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
                                if($url && strlen(get_config('system','directory_submit_url')))
                                        proc_run('php',"include/directory.php","$url");
+
+                               require_once('include/profile_update.php');
+                               profile_change();
                        }
                        else
                                notice( t('Unable to process image') . EOL);