- diary_entry_score = diary_entries.inject(0) { |acc, elem| acc + elem.body.spam_score }
- diary_comment_score = diary_comments.inject(0) { |acc, elem| acc + elem.body.spam_score }
+ diary_entry_score = diary_entries.visible.inject(0) { |acc, elem| acc + elem.body.spam_score }
+ diary_comment_score = diary_comments.visible.inject(0) { |acc, elem| acc + elem.body.spam_score }