Fix: 投稿編集時にハッシュタグ拒否のドメインブロックが動作しない問題 (#519)
This commit is contained in:
parent
a686391169
commit
64a149b338
4 changed files with 38 additions and 1 deletions
|
@ -1344,6 +1344,22 @@ RSpec.describe ActivityPub::Activity::Create do
|
|||
expect(status).to_not be_nil
|
||||
expect(status.tags.map(&:name)).to include('test')
|
||||
end
|
||||
|
||||
context 'with domain-block' do
|
||||
let(:custom_before) { true }
|
||||
|
||||
before do
|
||||
Fabricate(:domain_block, domain: 'example.com', severity: :noop, reject_hashtag: true)
|
||||
subject.perform
|
||||
end
|
||||
|
||||
it 'does not create status' do
|
||||
status = sender.statuses.first
|
||||
|
||||
expect(status).to_not be_nil
|
||||
expect(status.tags.map(&:name)).to eq []
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with hashtags missing name' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue