mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix inverted if/else check for thumbnail requests
Signed-off-by: Fred Heinecke <fred.heinecke@yahoo.com>
This commit is contained in:
parent
7d04da2eae
commit
0b3d46cc67
@ -58,7 +58,7 @@ public class ThumbnailsApi(IThumbnailsManager thumbs) : BaseApi
|
||||
public async Task<IActionResult> GetPoster(Guid id, [FromQuery] ImageQuality? quality)
|
||||
{
|
||||
quality ??= ImageQuality.High;
|
||||
if (await thumbs.IsImageSaved(id, quality.Value))
|
||||
if (!await thumbs.IsImageSaved(id, quality.Value))
|
||||
return NotFound();
|
||||
|
||||
// Allow clients to cache the image for 6 month.
|
||||
|
Loading…
x
Reference in New Issue
Block a user