mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: wasn't able to update category's settings
This commit is contained in:
@ -3,7 +3,7 @@ class UploadUrlValidator < ActiveModel::EachValidator
|
||||
if value.present?
|
||||
uri = URI.parse(value) rescue nil
|
||||
|
||||
unless uri && Upload.exists?(url: value)
|
||||
unless uri && Discourse.store.has_been_uploaded?(value)
|
||||
record.errors[attribute] << (options[:message] || I18n.t('errors.messages.invalid'))
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user