Always put :filters in context

This commit is contained in:
mdashlw 2025-02-25 05:10:40 +00:00 committed by GitHub
parent 3f2402c187
commit 90acea1dbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ defmodule Philomena.Images.Query do
|> Enum.map(&String.to_integer/1)
|> Enum.filter(&(&1 <= 2_147_483_647))
defp preload_filters([], context), do: context
defp preload_filters([], context), do: Map.put(context, :filters, %{})
defp preload_filters(ids, context) do
filters =