Regex reject pattern from Fedibird

This commit is contained in:
Mike Barnes 2025-03-27 21:01:08 +11:00
commit 9ee03ac660
9 changed files with 57 additions and 1 deletions

View file

@ -781,6 +781,10 @@ en:
all: To everyone
disabled: To no one
users: To logged-in local users
others:
activitypub: ActivityPub
preamble: Other settings, including customizing behavior
title: Other settings
registrations:
moderation_recommandation: Please make sure you have an adequate and reactive moderation team before you open registrations to everyone!
preamble: Control who can create an account on your server.
@ -791,6 +795,9 @@ en:
none: Nobody can sign up
open: Anyone can sign up
warning_hint: We recommend using “Approval required for sign up” unless you are confident your moderation team can handle spam and malicious registrations in a timely fashion.
reject_pattern:
desc_html: Set a regular expression pattern to inspect Create Activity content, and refuse Activity if you match
title: Reject Pattern
security:
authorized_fetch: Require authentication from federated servers
authorized_fetch_hint: Requiring authentication from federated servers enables stricter enforcement of both user-level and server-level blocks. However, this comes at the cost of a performance penalty, reduces the reach of your replies, and may introduce compatibility issues with some federated services. In addition, this will not prevent dedicated actors from fetching your public posts and accounts.
@ -1079,6 +1086,7 @@ en:
applications:
created: Application successfully created
destroyed: Application successfully deleted
invalid_regexp: 'The provided Regexp is invalid: %{message}'
logout: Logout
regenerate_token: Regenerate access token
token_regenerated: Access token successfully regenerated

View file

@ -50,6 +50,7 @@ namespace :admin do
resource :about, only: [:show, :update], controller: 'about'
resource :appearance, only: [:show, :update], controller: 'appearance'
resource :discovery, only: [:show, :update], controller: 'discovery'
resource :others, only: [:show, :update], controller: 'others'
end
resources :site_uploads, only: [:destroy]

View file

@ -38,6 +38,7 @@ defaults: &defaults
require_invite_text: false
backups_retention_period: 7
captcha_enabled: false
reject_pattern: ''
development:
<<: *defaults