mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
Fix QuoteAuthorization id not being properly serialized when federating revocation (#36083)
This commit is contained in:
parent
8a0d0025ff
commit
b60ee191ac
3 changed files with 18 additions and 3 deletions
|
|
@ -20,7 +20,22 @@ RSpec.describe RevokeQuoteService do
|
|||
it 'revokes the quote and sends a Delete activity' do
|
||||
expect { described_class.new.call(quote) }
|
||||
.to change { quote.reload.state }.from('accepted').to('revoked')
|
||||
.and enqueue_sidekiq_job(ActivityPub::DeliveryWorker).with(/Delete/, alice.id, hank.inbox_url)
|
||||
.and enqueue_sidekiq_job(ActivityPub::DeliveryWorker).with(
|
||||
match_json_values(
|
||||
type: 'Delete',
|
||||
id: %r{https://.*},
|
||||
object: include(
|
||||
type: 'QuoteAuthorization',
|
||||
id: %r{https://.*},
|
||||
attributedTo: ActivityPub::TagManager.instance.uri_for(alice),
|
||||
interactionTarget: ActivityPub::TagManager.instance.uri_for(status),
|
||||
interactingObject: ActivityPub::TagManager.instance.uri_for(quote.status)
|
||||
),
|
||||
actor: ActivityPub::TagManager.instance.uri_for(alice)
|
||||
),
|
||||
alice.id,
|
||||
hank.inbox_url
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue