mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
Don't load associations for aliases
This commit is contained in:
parent
ede4b5ce4f
commit
46e68aac60
1 changed files with 1 additions and 0 deletions
|
@ -163,6 +163,7 @@ defmodule Philomena.Autocomplete do
|
||||||
@spec get_associations(tags_list()) :: assoc_map()
|
@spec get_associations(tags_list()) :: assoc_map()
|
||||||
defp get_associations(tags) do
|
defp get_associations(tags) do
|
||||||
tags
|
tags
|
||||||
|
|> Enum.filter(fn {_, _, _, aliased} -> is_nil(aliased) end)
|
||||||
|> Enum.map(fn {name, images_count, id, _} ->
|
|> Enum.map(fn {name, images_count, id, _} ->
|
||||||
# Randomly sample 100 images with this tag
|
# Randomly sample 100 images with this tag
|
||||||
image_sample =
|
image_sample =
|
||||||
|
|
Loading…
Reference in a new issue