From 8bed23288b781db22c0825df7fac9f5312fbf6c4 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Thu, 6 Jun 2024 19:36:19 +0200 Subject: fix(files_sharing): dark avatar support Signed-off-by: skjnldsv --- core/Controller/AvatarController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index 88a5aa402aa..f65281602bd 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -14,14 +14,13 @@ use OCP\AppFramework\Http\Attribute\FrontpageRoute; use OCP\AppFramework\Http\DataDisplayResponse; use OCP\AppFramework\Http\FileDisplayResponse; use OCP\AppFramework\Http\JSONResponse; -use OCP\AppFramework\Http\RedirectResponse; +use OCP\AppFramework\Http\Response; use OCP\Files\File; use OCP\Files\IRootFolder; use OCP\IAvatarManager; use OCP\ICache; use OCP\IL10N; use OCP\IRequest; -use OCP\IURLGenerator; use OCP\IUserManager; use Psr\Log\LoggerInterface; @@ -42,7 +41,6 @@ class AvatarController extends Controller { protected LoggerInterface $logger, protected ?string $userId, protected TimeFactory $timeFactory, - protected IURLGenerator $urlGenerator, protected GuestAvatarController $guestAvatarController, ) { parent::__construct($appName, $request); @@ -58,7 +56,8 @@ class AvatarController extends Controller { * * @param string $userId ID of the user * @param int $size Size of the avatar - * @return FileDisplayResponse|JSONResponse, array{}> + * @param bool $guestFallback Fallback to guest avatar if not found + * @return FileDisplayResponse|JSONResponse, array{}>|Response * * 200: Avatar returned * 404: Avatar not found @@ -108,7 +107,8 @@ class AvatarController extends Controller { * * @param string $userId ID of the user * @param int $size Size of the avatar - * @return FileDisplayResponse|JSONResponse, array{}> + * @param bool $guestFallback Fallback to guest avatar if not found + * @return FileDisplayResponse|JSONResponse, array{}>|Response * * 200: Avatar returned * 404: Avatar not found -- cgit v1.2.3