mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Fix local avatar retrival
This commit is contained in:
parent
2ecda09ee4
commit
6787400056
@ -218,11 +218,10 @@ namespace Kyoo.Core.Controllers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await using FileStream img = File.Open(
|
return File.Open(
|
||||||
$"/metadata/user/{userId}.webp",
|
$"/metadata/user/{userId}.webp",
|
||||||
FileMode.Open
|
FileMode.Open
|
||||||
);
|
);
|
||||||
return img;
|
|
||||||
}
|
}
|
||||||
catch (FileNotFoundException) { }
|
catch (FileNotFoundException) { }
|
||||||
catch (DirectoryNotFoundException) { }
|
catch (DirectoryNotFoundException) { }
|
||||||
|
@ -69,6 +69,7 @@ export const Avatar = forwardRef<
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
borderRadius: 999999,
|
borderRadius: 999999,
|
||||||
|
overflow: "hidden",
|
||||||
height: size,
|
height: size,
|
||||||
width: size,
|
width: size,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user