Skip to content

Commit

Permalink
Set is_screenshot to false in LoadImages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkenJaden committed Mar 22, 2024
1 parent 3f0803f commit 3bf0c81
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Nekos/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,8 @@
private async Task LoadImages()
{
await _console.LogAsync("Loading new images in queue...");
var images = await _nekoClient.ImagesAsync(rating: ["explicit"], tag: [8], limit: 25);
foreach (var image in images.Items)
{
if (!_images.Any(x => x.Id.Equals(image.Id)))
_images.AddLast(image);
}
var images = await _nekoClient.ImagesAsync(rating: ["explicit"], tag: [8], limit: 25, is_screenshot:false);
foreach (var image in images.Items) if (!_images.Any(x => x.Id.Equals(image.Id))) _images.AddLast(image);
await _console.LogAsync("Image loading finished.");
}

Expand Down

0 comments on commit 3bf0c81

Please sign in to comment.