From 31e89e8f60c5ec41efd70ccf1bf5b22652174bae Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 18 Nov 2024 11:21:07 +0100 Subject: [PATCH] fixup! fix(avatar): Use Nextcloud HTTP client for favicons Signed-off-by: Christoph Wurst --- lib/AppInfo/Application.php | 2 +- lib/Service/Avatar/FaviconDataAccess.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 5c63f5e7f3..01bea26944 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -99,7 +99,7 @@ public function register(IRegistrationContext $context): void { return $userContainer->getUserFolder($uid); }); - $context->registerService(Favicon::class, function(ContainerInterface $c) { + $context->registerService(Favicon::class, function (ContainerInterface $c) { $favicon = new Favicon(); $favicon->setDataAccess( $c->get(FaviconDataAccess::class), diff --git a/lib/Service/Avatar/FaviconDataAccess.php b/lib/Service/Avatar/FaviconDataAccess.php index a58e1c7701..539049d0cc 100644 --- a/lib/Service/Avatar/FaviconDataAccess.php +++ b/lib/Service/Avatar/FaviconDataAccess.php @@ -14,7 +14,9 @@ class FaviconDataAccess extends DataAccess { - public function __construct(private IClientService $clientService) { + public function __construct( + private IClientService $clientService, + ) { } public function retrieveUrl($url) {