don't give author bump without an author link
This commit is contained in:
parent
7d0135ea16
commit
069a2e3b11
|
@ -218,7 +218,7 @@ class Story < ActiveRecord::Base
|
|||
# take each tag's hotness modifier into effect, and give a slight bump to
|
||||
# stories submitted by the author
|
||||
base = self.tags.map{|t| t.hotness_mod }.sum +
|
||||
(self.user_is_author ? 0.25 : 0.0)
|
||||
((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.
|
||||
|
|
Loading…
Reference in New Issue