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

fix: permitir hostnames numéricos

closes #15789
This commit is contained in:
f 2024-03-22 12:38:54 -03:00
parent cc654be121
commit b6fdc8a580
No known key found for this signature in database

View file

@ -9,7 +9,7 @@ class ActivityPub
include AASM include AASM
validates :aasm_state, presence: true, inclusion: { in: %w[paused allowed blocked] } validates :aasm_state, presence: true, inclusion: { in: %w[paused allowed blocked] }
validates :hostname, uniqueness: true, hostname: true validates :hostname, uniqueness: true, hostname: { allow_numeric_hostname: true }
has_many :activity_pubs has_many :activity_pubs
has_many :actors has_many :actors