mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
35 lines
492 B
Ruby
35 lines
492 B
Ruby
# frozen_string_literal: true
|
|
|
|
%w(
|
|
abuse
|
|
account
|
|
accounts
|
|
admin
|
|
administration
|
|
administrator
|
|
admins
|
|
help
|
|
helpdesk
|
|
instance
|
|
mod
|
|
moderator
|
|
moderators
|
|
mods
|
|
owner
|
|
root
|
|
security
|
|
server
|
|
staff
|
|
support
|
|
webmaster
|
|
).each do |str|
|
|
UsernameBlock.create_with(username: str, exact: true).find_or_create_by(username: str)
|
|
end
|
|
|
|
%w(
|
|
mastodon
|
|
mastadon
|
|
).each do |str|
|
|
UsernameBlock.create_with(username: str, exact: false).find_or_create_by(username: str)
|
|
end
|