diff --git a/lib/philomena/autocomplete.ex b/lib/philomena/autocomplete.ex index e0f29189..513b4c2d 100644 --- a/lib/philomena/autocomplete.ex +++ b/lib/philomena/autocomplete.ex @@ -163,6 +163,7 @@ defmodule Philomena.Autocomplete do @spec get_associations(tags_list()) :: assoc_map() defp get_associations(tags) do tags + |> Enum.filter(fn {_, _, _, aliased} -> is_nil(aliased) end) |> Enum.map(fn {name, images_count, id, _} -> # Randomly sample 100 images with this tag image_sample =