mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
Cleanups:
- added empty lines - removed old-lost commented out line Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
538760d9da
commit
bacb7b70f6
2 changed files with 10 additions and 1 deletions
|
@ -4517,6 +4517,7 @@ function api_account_update_profile_image($type)
|
|||
} else {
|
||||
throw new InternalServerErrorException('Unsupported filetype');
|
||||
}
|
||||
|
||||
// change specified profile or all profiles to the new resource-id
|
||||
if ($is_default_profile) {
|
||||
$condition = ["`profile` AND `resource-id` != ? AND `uid` = ?", $data['photo']['id'], api_user()];
|
||||
|
@ -4530,7 +4531,6 @@ function api_account_update_profile_image($type)
|
|||
Contact::updateSelfFromUserID(api_user(), true);
|
||||
|
||||
// Update global directory in background
|
||||
//$user = api_get_user(get_app());
|
||||
$url = System::baseUrl() . '/profile/' . get_app()->user['nickname'];
|
||||
if ($url && strlen(Config::get('system', 'directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue