mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Add age verification on sign-up (#34150)
This commit is contained in:
@@ -107,6 +107,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||
enabled: registrations_enabled?,
|
||||
approval_required: Setting.registrations_mode == 'approved',
|
||||
message: registrations_enabled? ? nil : registrations_message,
|
||||
min_age: Setting.min_age.presence,
|
||||
url: ENV.fetch('SSO_ACCOUNT_SIGN_UP', nil),
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user