* Remove: #609 NGワード設定の2項目を削除 * Fix test
This commit is contained in:
parent
dd7a2a6bbf
commit
b787b130a2
9 changed files with 5 additions and 79 deletions
|
@ -2273,50 +2273,6 @@ RSpec.describe ActivityPub::Activity::Create do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'when stranger mention for domain' do
|
||||
let(:object_json) do
|
||||
{
|
||||
id: [ActivityPub::TagManager.instance.uri_for(sender), '#bar'].join,
|
||||
type: 'Note',
|
||||
content: 'Lorem ipsum',
|
||||
to: 'https://www.w3.org/ns/activitystreams#Public',
|
||||
tag: [
|
||||
{
|
||||
type: 'Mention',
|
||||
href: ActivityPub::TagManager.instance.uri_for(Fabricate(:account)),
|
||||
},
|
||||
],
|
||||
}
|
||||
end
|
||||
|
||||
context 'when the domain does not have follower' do
|
||||
let(:custom_before) { true }
|
||||
|
||||
before do
|
||||
Setting.block_unfollow_account_mention = true
|
||||
subject.perform
|
||||
end
|
||||
|
||||
it 'creates status' do
|
||||
expect(sender.statuses.first).to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
context 'when other account following' do
|
||||
let(:custom_before) { true }
|
||||
|
||||
before do
|
||||
Setting.block_unfollow_account_mention = true
|
||||
Fabricate(:account).follow!(sender)
|
||||
subject.perform
|
||||
end
|
||||
|
||||
it 'creates status' do
|
||||
expect(sender.statuses.first).to_not be_nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'when object URI uses bearcaps' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue