From 2e2b92811ea42a7f93ff084029c04f129d7babd4 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 9 Apr 2026 14:30:06 +0200 Subject: [PATCH] Add trademark warning to `mastodon:setup` task (#38548) --- lib/tasks/mastodon.rake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index a679f7a976d..d080a85aa0d 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -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.')