mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-06 13:12:47 +00:00
Fix inverted if/else check for thumbnail requests
Signed-off-by: Fred Heinecke <fred.heinecke@yahoo.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user