mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
actually count correctly
This commit is contained in:
parent
1fbe3bd555
commit
62885b51df
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ defmodule Philomena.Tags do
|
|||
new_count =
|
||||
Image
|
||||
|> join(:inner, [i], _ in assoc(i, :tags))
|
||||
|> where([i, t], i.hidden_from_users == true and t.id == ^target_tag.id)
|
||||
|> where([i, t], i.hidden_from_users == false and t.id == ^target_tag.id)
|
||||
|> Repo.aggregate(:count, :id)
|
||||
|
||||
Tag
|
||||
|
|
Loading…
Reference in a new issue