about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-18 16:33:03 +0100
committerGitHub <noreply@github.com>2023-01-18 16:33:03 +0100
commitd1387579b904542245646fc12eca99c97feccc63 (patch)
tree1f8a0bc58a7c76a773e6a4fb02bb705d0501e2ad /db
parent9b3e22c40d5a24ddfa0df42d8fe6e96a273e8afd (diff)
Fix situations in which instance actor can be set to a Mastodon-incompatible name (#22307)
* Validate internal actor

* Use “internal.actor” by default for the server actor username

* Fix instance actor username on the fly if it includes ':'

* Change actor name from internal.actor to mastodon.internal
Diffstat (limited to 'db')
-rw-r--r--db/seeds/02_instance_actor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/seeds/02_instance_actor.rb b/db/seeds/02_instance_actor.rb
index 39186b273..f9aa372f1 100644
--- a/db/seeds/02_instance_actor.rb
+++ b/db/seeds/02_instance_actor.rb
@@ -1 +1 @@
-Account.create_with(actor_type: 'Application', locked: true, username: ENV['LOCAL_DOMAIN'] || Rails.configuration.x.local_domain).find_or_create_by(id: -99)
+Account.create_with(actor_type: 'Application', locked: true, username: 'mastodon.internal').find_or_create_by(id: -99)