mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-20 10:13:59 +02:00
Filter out big ids
This commit is contained in:
parent
51ddabcf1c
commit
b905792e9c
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ defmodule Philomena.Images.Query do
|
|||
Regex.scan(~r/\bfilter_id:(\d+)/, query_string, capture: :all_but_first)
|
||||
|> List.flatten()
|
||||
|> Enum.map(&String.to_integer/1)
|
||||
|> Enum.filter(&(&1 <= 2_147_483_647))
|
||||
|
||||
defp preload_filters([], context), do: context
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue