From a67236d0978acdf1d63671fb0e536175d34c8375 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Sat, 20 May 2017 14:50:03 +0200 Subject: [PATCH] Story: bump up hotness for stories authored by users --- app/models/story.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/story.rb b/app/models/story.rb index d08d64b..076778f 100644 --- a/app/models/story.rb +++ b/app/models/story.rb @@ -185,7 +185,8 @@ class Story < ActiveRecord::Base end def calculated_hotness - base = self.tags.map{|t| t.hotness_mod }.sum + base = self.tags.map{|t| t.hotness_mod }.sum + + (self.user_is_author ? 0.25 : 0.0) # give a story's comment votes some weight, ignoring submitter's comments cpoints = self.comments.