comments: remove 10 comment votes per hour limit.

This commit is contained in:
evazion
2020-03-21 22:29:55 -05:00
parent 63f7311489
commit 88a8f459ed
3 changed files with 0 additions and 22 deletions

View File

@@ -402,10 +402,6 @@ class User < ApplicationRecord
end
end
def can_comment_vote?
CommentVote.where("user_id = ? and created_at > ?", id, 1.hour.ago).count < 10
end
def upload_limit
@upload_limit ||= UploadLimit.new(self)
end