mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
filter fixes
This commit is contained in:
parent
9294e54771
commit
417305e43c
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ defmodule PhilomenaWeb.Admin.User.ForceFilterController do
|
|||
end
|
||||
|
||||
def delete(conn, _params) do
|
||||
{:ok, user} = Users.unforce_filter(conn.assigns.current_user)
|
||||
{:ok, user} = Users.unforce_filter(conn.assigns.user)
|
||||
|
||||
conn
|
||||
|> put_flash(:info, "Forced filter was removed.")
|
||||
|
|
|
@ -14,7 +14,7 @@ defmodule PhilomenaWeb.ImageFilterPlug do
|
|||
filter = defaults(conn.assigns[:current_filter])
|
||||
forced = defaults(conn.assigns[:forced_filter])
|
||||
|
||||
tag_exclusion = %{terms: %{tag_ids: filter.hidden_tag_ids}}
|
||||
tag_exclusion = %{terms: %{tag_ids: filter.hidden_tag_ids ++ forced.hidden_tag_ids}}
|
||||
query_spoiler = invalid_filter_guard(user, filter.spoilered_complex_str)
|
||||
query_exclusion = %{
|
||||
bool: %{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
br
|
||||
i.fa.fa-fw.fa-filter>
|
||||
strong.comment_deleted> Forced Filter:
|
||||
= link @forced.name, to: Routes.filter_path(@conn, :show, @filter)
|
||||
= link @forced.name, to: Routes.filter_path(@conn, :show, @forced)
|
||||
|
||||
br
|
||||
i.far.fa-fw.fa-clock>
|
||||
|
|
Loading…
Reference in a new issue