From 853553f329ca270f842f4cfedbab5fd15876673f Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 23 Jun 2015 13:58:23 +1000 Subject: [PATCH] FIX: in:bookmarks searching deleted bookmarks --- lib/search.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/search.rb b/lib/search.rb index b5883a49d..a2a32c0e9 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -191,7 +191,8 @@ class Search posts.where("posts.id IN ( SELECT pa.post_id FROM post_actions pa WHERE pa.user_id = #{@guardian.user.id} AND - pa.post_action_type_id = #{post_action_type} + pa.post_action_type_id = #{post_action_type} AND + deleted_at IS NULL )") end end