1
1
Fork 0

Merge pull request #3475 from annando/bugfix-profile-change

Bugfix: Timeout problems when saving profile settings
This commit is contained in:
Hypolite Petovan 2017-05-19 07:28:56 -04:00 committed by GitHub
commit cb44ac386a
5 changed files with 12 additions and 10 deletions

View file

@ -3744,8 +3744,7 @@ $called_api = null;
proc_run(PRIORITY_LOW, "include/directory.php", $url); proc_run(PRIORITY_LOW, "include/directory.php", $url);
} }
require_once 'include/profile_update.php'; proc_run(PRIORITY_LOW, 'include/profile_update.php', api_user());
profile_change();
// output for client // output for client
if ($data) { if ($data) {

View file

@ -1,6 +1,12 @@
<?php <?php
require_once('include/diaspora.php'); require_once('include/diaspora.php');
function profile_change() { function profile_update_run(&$argv, &$argc) {
Diaspora::send_profile(local_user()); if ($argc != 2) {
return;
}
$uid = intval($argv[1]);
Diaspora::send_profile($uid);
} }

View file

@ -131,8 +131,7 @@ function profile_photo_post(App $a) {
proc_run(PRIORITY_LOW, "include/directory.php", $url); proc_run(PRIORITY_LOW, "include/directory.php", $url);
} }
require_once('include/profile_update.php'); proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
profile_change();
} else { } else {
notice( t('Unable to process image') . EOL); notice( t('Unable to process image') . EOL);
} }

View file

@ -504,8 +504,7 @@ function profiles_post(App $a) {
proc_run(PRIORITY_LOW, "include/directory.php", $url); proc_run(PRIORITY_LOW, "include/directory.php", $url);
} }
require_once 'include/profile_update.php'; proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
profile_change();
// Update the global contact for the user // Update the global contact for the user
update_gcontact_for_user(local_user()); update_gcontact_for_user(local_user());

View file

@ -637,8 +637,7 @@ function settings_post(App $a) {
} }
} }
require_once('include/profile_update.php'); proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
profile_change();
// Update the global contact for the user // Update the global contact for the user
update_gcontact_for_user(local_user()); update_gcontact_for_user(local_user());