respect tag filters

This commit is contained in:
byte[] 2019-11-17 17:39:19 -05:00
parent f5cead1379
commit 5c4b19edff

View file

@ -11,7 +11,8 @@ defmodule PhilomenaWeb.CommentController do
%{
query: %{
bool: %{
must: parse_search(conn, params) ++ [%{term: %{hidden_from_users: false}}]
must: parse_search(conn, params) ++ [%{term: %{hidden_from_users: false}}],
must_not: %{terms: %{image_tag_ids: conn.assigns.current_filter.hidden_tag_ids}}
}
},
sort: parse_sort(params)