mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 14:15:22 +00:00
Always validate inbox_url presence on relay
This commit is contained in:
parent
e15befebbd
commit
c0aa75d5a4
|
@ -13,7 +13,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
class Relay < ApplicationRecord
|
class Relay < ApplicationRecord
|
||||||
validates :inbox_url, presence: true, uniqueness: true, url: true, if: :will_save_change_to_inbox_url?
|
validates :inbox_url, presence: true
|
||||||
|
validates :inbox_url, uniqueness: true, url: true, if: :will_save_change_to_inbox_url?
|
||||||
|
|
||||||
enum :state, { idle: 0, pending: 1, accepted: 2, rejected: 3 }
|
enum :state, { idle: 0, pending: 1, accepted: 2, rejected: 3 }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue