Skip to content

Commit

Permalink
fixup! fix(avatar): Use Nextcloud HTTP client for favicons
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Nov 18, 2024
1 parent 5350fe1 commit 31e89e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 3 additions & 1 deletion lib/Service/Avatar/FaviconDataAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

class FaviconDataAccess extends DataAccess {

public function __construct(private IClientService $clientService) {
public function __construct(
private IClientService $clientService,
) {
}

public function retrieveUrl($url) {
Expand Down

0 comments on commit 31e89e8

Please sign in to comment.