Fix: #83 フレンドサーバーでの全投稿配送で、アカウントドメインブロックが無視される問題 (#102)

This commit is contained in:
KMY(雪あすか) 2023-10-12 20:06:33 +09:00 committed by GitHub
parent 2e7cdd0516
commit 12d068d38d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -239,6 +239,18 @@ describe StatusReachFinder do
expect(subject.inboxes_for_friend).to_not include 'https://foo.bar/inbox'
end
end
context 'when distributable but domain blocked by account' do
before do
Fabricate(:account_domain_block, account: alice, domain: 'foo.bar')
Fabricate(:friend_domain, domain: 'foo.bar', inbox_url: 'https://foo.bar/inbox', passive_state: :accepted, pseudo_relay: true)
end
it 'send status' do
expect(subject.inboxes).to_not include 'https://foo.bar/inbox'
expect(subject.inboxes_for_friend).to_not include 'https://foo.bar/inbox'
end
end
end
context 'when it contains distributable friend server' do