From: Pierre Rudloff Date: Tue, 26 Dec 2017 00:08:51 +0000 (+0100) Subject: Update profile in directory when calling api_account_update_profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c490a718acbbb8eb34d1c7f8e49806148a33380e;p=friendica.git Update profile in directory when calling api_account_update_profile --- diff --git a/include/api.php b/include/api.php index 59317fcd31..e2d35d59df 100644 --- a/include/api.php +++ b/include/api.php @@ -4498,6 +4498,11 @@ function api_account_update_profile($type) } Worker::add(PRIORITY_LOW, 'ProfileUpdate', api_user()); + // Update global directory in background + $url = $_SESSION['my_url']; + if ($url && strlen(Config::get('system', 'directory'))) { + Worker::add(PRIORITY_LOW, "Directory", $url); + } return api_account_verify_credentials($type); }