Fix #4689: Remove 7 day waiting period for new uploaders.
This commit is contained in:
@@ -62,6 +62,7 @@ class Post < ApplicationRecord
|
||||
scope :pending, -> { where(is_pending: true) }
|
||||
scope :flagged, -> { where(is_flagged: true) }
|
||||
scope :banned, -> { where(is_banned: true) }
|
||||
# XXX conflict with deletable
|
||||
scope :active, -> { where(is_pending: false, is_deleted: false, is_flagged: false).where.not(id: PostAppeal.pending) }
|
||||
scope :appealed, -> { deleted.where(id: PostAppeal.pending.select(:post_id)) }
|
||||
scope :in_modqueue, -> { pending.or(flagged).or(appealed) }
|
||||
@@ -1389,7 +1390,7 @@ class Post < ApplicationRecord
|
||||
end
|
||||
|
||||
def uploader_is_not_limited
|
||||
errors.add(:uploader, uploader.upload_limit.limit_reason) if uploader.upload_limit.limited?
|
||||
errors.add(:uploader, "have reached your upload limit") if uploader.upload_limit.limited?
|
||||
end
|
||||
|
||||
def added_tags_are_valid
|
||||
|
||||
Reference in New Issue
Block a user