mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 01:33:17 +00:00
Add quote_approval_policy parameter when posting and editing statuses (#35699)
This commit is contained in:
parent
6e48322055
commit
9ec99ffef1
5 changed files with 70 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue