mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 06:37:59 +01:00
fix searching for deleted posts
This commit is contained in:
parent
556cd39afd
commit
f9b810d5d1
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue