Add sign-up button to logged-out web UI (#19250)

This commit is contained in:
Eugen Rochko
2022-09-29 06:21:51 +02:00
committed by GitHub
parent 43b5d5e38d
commit e623c302d5
8 changed files with 43 additions and 4 deletions

View File

@ -26,6 +26,7 @@ class InitialStateSerializer < ActiveModel::Serializer
mascot: instance_presenter.mascot&.file&.url,
profile_directory: Setting.profile_directory,
trends: Setting.trends,
registrations_open: Setting.registrations_mode != 'none' && !Rails.configuration.x.single_user_mode,
}
if object.current_account