1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-04 17:58:49 +09:00
YuruToot/db/seeds/02_instance_actor.rb
Claire d1387579b9
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
2023-01-18 16:33:03 +01:00

2 lines
119 B
Ruby

Account.create_with(actor_type: 'Application', locked: true, username: 'mastodon.internal').find_or_create_by(id: -99)