5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-21 07:57:03 +00:00

used merged_comments for scoring

This commit is contained in:
Peter Bhat Harkins 2018-06-04 13:48:42 -05:00
parent 095d884615
commit bd9370f32b

View File

@ -278,7 +278,7 @@ class Story < ApplicationRecord
(self.user_is_author? && self.url.present? ? 0.25 : 0.0)
# give a story's comment votes some weight, ignoring submitter's comments
cpoints = self.comments
cpoints = self.merged_comments
.where("user_id <> ?", self.user_id)
.select(:upvotes, :downvotes)
.map {|c|