From 62885b51df45272b84d5665b625a89d5e4cd6550 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 15 Dec 2019 10:09:43 -0500 Subject: [PATCH] actually count correctly --- lib/philomena/tags.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/tags.ex b/lib/philomena/tags.ex index f2ecb98d..3e7051e8 100644 --- a/lib/philomena/tags.ex +++ b/lib/philomena/tags.ex @@ -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