Add quote_approval_policy parameter when posting and editing statuses (#35699)

This commit is contained in:
Claire 2025-08-06 16:23:12 +02:00 committed by GitHub
parent 6e48322055
commit 9ec99ffef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 2 deletions

View file

@ -160,6 +160,12 @@ RSpec.describe PostStatusService do
expect(status.language).to eq 'en'
end
it 'creates a status with the quote approval policy set' do
status = create_status_with_options(quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:followers] << 16)
expect(status.quote_approval_policy).to eq(Status::QUOTE_APPROVAL_POLICY_FLAGS[:followers] << 16)
end
it 'processes mentions' do
mention_service = instance_double(ProcessMentionsService)
allow(mention_service).to receive(:call)