remove leftover code

This commit is contained in:
Sam 2015-02-05 11:54:25 +11:00
parent 16465edd88
commit bfa96811c1
1 changed files with 0 additions and 7 deletions

View File

@ -348,13 +348,6 @@ class Search
posts = posts.where("posts.user_id = #{@guardian.user.id}") posts = posts.where("posts.user_id = #{@guardian.user.id}")
end 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 if @notification_level
posts = posts.where("posts.topic_id IN ( posts = posts.where("posts.topic_id IN (
SELECT tu.topic_id FROM topic_users tu SELECT tu.topic_id FROM topic_users tu