5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 16:16:21 +00:00

fix: soportar actores de micropub #16939

This commit is contained in:
f 2024-07-30 11:37:58 -03:00
parent 57377279a5
commit 31a2ca630f
No known key found for this signature in database

View file

@ -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