5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 15:46:22 +00:00

Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl

This commit is contained in:
Sutty 2024-03-22 15:39:39 +00:00
commit c938e6dd1e

View file

@ -9,7 +9,7 @@ class ActivityPub
include AASM
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 :actors