mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-09 12:31:42 -05:00
Add trademark warning to mastodon:setup task (#38548)
This commit is contained in:
parent
0107437967
commit
2e2b92811e
|
|
@ -27,6 +27,12 @@ namespace :mastodon do
|
|||
q.messages[:valid?] = 'Invalid domain. If you intend to use unicode characters, enter punycode here'
|
||||
end
|
||||
|
||||
if env['LOCAL_DOMAIN'].include?('mastodon') || env['LOCAL_DOMAIN'].include?('mstdn')
|
||||
prompt.warn 'The Mastodon name is a trademark and its use is restricted.'
|
||||
prompt.warn 'You can read the trademark policy at https://joinmastodon.org/trademark'
|
||||
next prompt.warn 'Nothing saved. Bye!' if prompt.no?('Continue anyway?')
|
||||
end
|
||||
|
||||
prompt.say "\n"
|
||||
|
||||
prompt.say('Single user mode disables registrations and redirects the landing page to your public profile.')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user