diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-26 01:06:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 01:06:13 +0200 |
commit | cf7fbf2c569473e9a984bd3042930f9c5a060a23 (patch) | |
tree | 706d5604c56be77ae03dae6318d15b52c8e397e2 /spec/services/activitypub | |
parent | 91e5b0dfdbfbf9415e6bff14cbc3a80bc6e53f5c (diff) |
Fix #5059 - Stop processing payload if it's from local account (#5100)
Diffstat (limited to 'spec/services/activitypub')
-rw-r--r-- | spec/services/activitypub/process_collection_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/activitypub/process_collection_service_spec.rb b/spec/services/activitypub/process_collection_service_spec.rb index 249b12470..c1cc22523 100644 --- a/spec/services/activitypub/process_collection_service_spec.rb +++ b/spec/services/activitypub/process_collection_service_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' RSpec.describe ActivityPub::ProcessCollectionService do - let(:actor) { Fabricate(:account) } + let(:actor) { Fabricate(:account, domain: 'example.com', uri: 'http://example.com/account') } let(:payload) do { @@ -24,7 +24,7 @@ RSpec.describe ActivityPub::ProcessCollectionService do describe '#call' do context 'when actor is the sender' context 'when actor differs from sender' do - let(:forwarder) { Fabricate(:account) } + let(:forwarder) { Fabricate(:account, domain: 'example.com', uri: 'http://example.com/other_account') } it 'processes payload with sender if no signature exists' do expect_any_instance_of(ActivityPub::LinkedDataSignature).not_to receive(:verify_account!) |