fix searching for deleted posts

This commit is contained in:
byte[] 2019-12-22 18:45:49 -05:00
parent 556cd39afd
commit f9b810d5d1

View file

@ -60,9 +60,6 @@ defmodule Philomena.Posts.Query do
mod_literal_fields = ~W(forum_id topic_id user_id author fingerprint) mod_literal_fields = ~W(forum_id topic_id user_id author fingerprint)
mod_ip_fields = ~W(ip) mod_ip_fields = ~W(ip)
mod_bool_fields = ~W(anonymous deleted) mod_bool_fields = ~W(anonymous deleted)
mod_aliases = %{
"deleted" => "hidden_from_users"
}
mod_custom = user_custom -- ~W(author user_id) mod_custom = user_custom -- ~W(author user_id)
mod_transforms = Map.drop(user_transforms, ["user_id", "author"]) mod_transforms = Map.drop(user_transforms, ["user_id", "author"])
@ -96,7 +93,6 @@ defmodule Philomena.Posts.Query do
bool_fields: mod_bool_fields, bool_fields: mod_bool_fields,
custom_fields: mod_custom, custom_fields: mod_custom,
transforms: mod_transforms, transforms: mod_transforms,
aliases: mod_aliases,
default_field: default_field default_field: default_field
) )