mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
deduplicate tag list
This commit is contained in:
parent
ebe9463b96
commit
5d4f8f83f6
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ defmodule PhilomenaWeb.ImageLoader do
|
||||||
|> where([t, at], t.name in ^tags or at.name in ^tags)
|
|> where([t, at], t.name in ^tags or at.name in ^tags)
|
||||||
|> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user])
|
|> preload([:aliases, :implied_tags, :implied_by_tags, :dnp_entries, public_links: :user])
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|
|> Enum.uniq_by(& &1.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp render_bodies([], _conn), do: []
|
defp render_bodies([], _conn), do: []
|
||||||
|
|
Loading…
Reference in a new issue