From d6255916e89667e4b197bd004cbc27af903e8c48 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 29 Aug 2012 08:47:52 -0500 Subject: [PATCH] fix story hiding when downvoted; don't count comment votes --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 53f1b11..e305dc8 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -79,7 +79,7 @@ private if user && !newest # exclude downvoted items conds[0] << "AND stories.id NOT IN (SELECT story_id FROM votes " << - "WHERE user_id = ? AND vote < 0) " + "WHERE user_id = ? AND vote < 0 AND comment_id IS NULL) " conds.push user.id end