mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +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 =
|
new_count =
|
||||||
Image
|
Image
|
||||||
|> join(:inner, [i], _ in assoc(i, :tags))
|
|> 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)
|
|> Repo.aggregate(:count, :id)
|
||||||
|
|
||||||
Tag
|
Tag
|
||||||
|
|
Loading…
Reference in a new issue