diff --git a/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php b/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php index 4ab08df..896946d 100644 --- a/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php +++ b/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php @@ -21,25 +21,30 @@ # SPDX-License-Identifier: AGPL-3.0-or-later */ $api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']); - $avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider"; // Remove user menu Settings item for non-administrator users if(!array_key_exists('core_apps', $_["settingsnavigation"])){ unset($_["settingsnavigation"]["settings"]); } -?> - + +$getUserAvatar = static function (int $size) use ($_): string { + $avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider"; + return $avatar_url; +} + +?>