From f9b810d5d12739c30db8a242123bd7bdd8edd250 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 22 Dec 2019 18:45:49 -0500 Subject: [PATCH] fix searching for deleted posts --- lib/philomena/posts/query.ex | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/philomena/posts/query.ex b/lib/philomena/posts/query.ex index 305a8ccd..c626f7fa 100644 --- a/lib/philomena/posts/query.ex +++ b/lib/philomena/posts/query.ex @@ -60,9 +60,6 @@ defmodule Philomena.Posts.Query do mod_literal_fields = ~W(forum_id topic_id user_id author fingerprint) mod_ip_fields = ~W(ip) mod_bool_fields = ~W(anonymous deleted) - mod_aliases = %{ - "deleted" => "hidden_from_users" - } mod_custom = user_custom -- ~W(author user_id) mod_transforms = Map.drop(user_transforms, ["user_id", "author"]) @@ -96,7 +93,6 @@ defmodule Philomena.Posts.Query do bool_fields: mod_bool_fields, custom_fields: mod_custom, transforms: mod_transforms, - aliases: mod_aliases, default_field: default_field )