mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-29 07:03:16 +01:00
Add quote_approval_policy parameter when posting and editing statuses (#35699)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user