Comment: fix an off-by-one
This commit is contained in:
parent
b36bc14980
commit
84e125c328
|
@ -324,7 +324,7 @@ class Comment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_downvotable?
|
def is_downvotable?
|
||||||
if self.created_at && self.score >= DOWNVOTABLE_MIN_SCORE
|
if self.created_at && self.score > DOWNVOTABLE_MIN_SCORE
|
||||||
Time.now - self.created_at <= DOWNVOTABLE_DAYS.days
|
Time.now - self.created_at <= DOWNVOTABLE_DAYS.days
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue