From bfa96811c125df457fddd375e98a63ee3e1af171 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 5 Feb 2015 11:54:25 +1100 Subject: [PATCH] remove leftover code --- lib/search.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/search.rb b/lib/search.rb index 3b9500f965f..68d2553d69d 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -348,13 +348,6 @@ class Search posts = posts.where("posts.user_id = #{@guardian.user.id}") end - if @search_bookmarks - post_action_type = @search_likes ? PostActionType.types(:like) : PostActionType.types[:bookmark] - posts = posts.where(["posts.id IN (SELECT post_id FROM post_actions - WHERE user_id = ? AND post_action_type_id = ?)", - @guardian.user.id, post_action_type]) - end - if @notification_level posts = posts.where("posts.topic_id IN ( SELECT tu.topic_id FROM topic_users tu