Fix local avatar retrival

This commit is contained in:
Zoe Roux 2024-02-04 23:17:50 +01:00
parent 2ecda09ee4
commit 6787400056
2 changed files with 2 additions and 2 deletions

View File

@ -218,11 +218,10 @@ namespace Kyoo.Core.Controllers
{
try
{
await using FileStream img = File.Open(
return File.Open(
$"/metadata/user/{userId}.webp",
FileMode.Open
);
return img;
}
catch (FileNotFoundException) { }
catch (DirectoryNotFoundException) { }

View File

@ -69,6 +69,7 @@ export const Avatar = forwardRef<
[
{
borderRadius: 999999,
overflow: "hidden",
height: size,
width: size,
},