Cleaner way to get user URL in api_account_update_profile
This commit is contained in:
parent
c490a718ac
commit
8b10bfe3a8
|
@ -4497,11 +4497,10 @@ function api_account_update_profile($type)
|
||||||
dba::update('contact', ['about' => $_POST['description']], ['id' => $api_user['id']]);
|
dba::update('contact', ['about' => $_POST['description']], ['id' => $api_user['id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Worker::add(PRIORITY_LOW, 'ProfileUpdate', api_user());
|
Worker::add(PRIORITY_LOW, 'ProfileUpdate', $local_user);
|
||||||
// Update global directory in background
|
// Update global directory in background
|
||||||
$url = $_SESSION['my_url'];
|
if ($api_user['url'] && strlen(Config::get('system', 'directory'))) {
|
||||||
if ($url && strlen(Config::get('system', 'directory'))) {
|
Worker::add(PRIORITY_LOW, "Directory", $api_user['url']);
|
||||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return api_account_verify_credentials($type);
|
return api_account_verify_credentials($type);
|
||||||
|
|
Loading…
Reference in a new issue