Change: ホワイトリストが空でも設定が有効であればアカウント作成を保留 (#601)
* Change: ホワイトリストが空でも設定が有効であればアカウント作成を保留 * Fix test
This commit is contained in:
parent
9d57a83555
commit
ad723b0cbd
4 changed files with 5 additions and 6 deletions
|
@ -141,7 +141,6 @@ class ActivityPub::ProcessAccountService < BaseService
|
|||
|
||||
def blocking_new_account?
|
||||
return false unless Setting.hold_remote_new_accounts
|
||||
return false if permit_new_account_domains.blank?
|
||||
|
||||
permit_new_account_domains.exclude?(@domain)
|
||||
end
|
||||
|
|
|
@ -661,7 +661,7 @@ en:
|
|||
post_mentions_max: Mentions max for posts
|
||||
post_stranger_mentions_max: 投稿に設定可能なメンションの最大数 (If the mentions include at least one person who is not a follower of yours)
|
||||
remote_approval_list: List of remote accounts awaiting approval
|
||||
remote_approval_hint: If you set one or more domains on the list of domains for which you want to automatically approve new users, newly recognized accounts on unspecified domains will be placed in suspend status. You can review that list and approve them if necessary. If none is specified, all remote accounts are approved immediately.
|
||||
remote_approval_hint: Newly recognized accounts with unspecified domains will be placed in Suspended status. You can review that list and approve them if necessary. If this setting is not enabled, all remote accounts will be approved immediately.
|
||||
stranger_mention_from_local_ng: フォローしていないアカウントへのメンションのNGワードを、ローカルユーザーによる投稿にも適用する
|
||||
stranger_mention_from_local_ng_hint: サーバーの登録が承認制でない場合、あなたのサーバーにもスパムが入り込む可能性があります
|
||||
test_error: Testing is returned any errors
|
||||
|
|
|
@ -654,7 +654,7 @@ ja:
|
|||
post_mentions_max: 投稿に設定可能なメンションの最大数
|
||||
post_stranger_mentions_max: 投稿に設定可能なメンションの最大数 (メンション先にフォロワー以外を1人でも含む場合)
|
||||
remote_approval_list: 承認待ちのリモートアカウント一覧
|
||||
remote_approval_hint: 新規ユーザーを自動承認するドメインリストに1つ以上のドメインを設定すると、指定されていないドメインで新しく認識されたアカウントはサスペンド状態になります。その一覧を確認し、必要であれば承認を行うことができます。何も指定しなかった場合、全てのリモートアカウントが即座に承認されます。
|
||||
remote_approval_hint: 指定されていないドメインで新しく認識されたアカウントはサスペンド状態になります。その一覧を確認し、必要であれば承認を行うことができます。この設定が有効でない場合、全てのリモートアカウントが即座に承認されます。
|
||||
stranger_mention_from_local_ng: フォローしていないアカウントへのメンションのNGワードを、ローカルユーザーによる投稿にも適用する
|
||||
stranger_mention_from_local_ng_hint: サーバーの登録が承認制でない場合、あなたのサーバーにもスパムが入り込む可能性があります
|
||||
test_error: NGワードのテストに失敗しました。正規表現のミスが含まれているかもしれません
|
||||
|
|
|
@ -29,11 +29,11 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
|
|||
Setting.permit_new_account_domains = permit_new_account_domains
|
||||
end
|
||||
|
||||
it 'created account in a simple case' do
|
||||
it 'creates pending account in a simple case' do
|
||||
expect(subject).to_not be_nil
|
||||
expect(subject.uri).to eq 'https://foo.test'
|
||||
expect(subject.suspended?).to be false
|
||||
expect(subject.remote_pending).to be false
|
||||
expect(subject.suspended?).to be true
|
||||
expect(subject.remote_pending).to be true
|
||||
end
|
||||
|
||||
context 'when is blocked' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue