mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 16:56:22 +00:00
Merge branch 'issue-16939' into 'rails'
fix: soportar actores de micropub #16939 See merge request sutty/sutty!276
This commit is contained in:
commit
e85ca30101
1 changed files with 0 additions and 1 deletions
|
@ -14,7 +14,6 @@ class UrlValidator < ActiveModel::EachValidator
|
||||||
|
|
||||||
record.errors.add(attribute, :scheme_missing) if uri.scheme.blank?
|
record.errors.add(attribute, :scheme_missing) if uri.scheme.blank?
|
||||||
record.errors.add(attribute, :host_missing) if uri.host.blank?
|
record.errors.add(attribute, :host_missing) if uri.host.blank?
|
||||||
record.errors.add(attribute, :path_missing) if uri.path.blank?
|
|
||||||
rescue URI::Error
|
rescue URI::Error
|
||||||
record.errors.add(attribute, :invalid)
|
record.errors.add(attribute, :invalid)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue