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:
parent
095d884615
commit
bd9370f32b
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue
Block a user