0
0
Fork 0

Remove PubSubHubbub-related columns from accounts table (#16170)

This commit is contained in:
Eugen Rochko 2021-05-07 19:32:58 +02:00 committed by GitHub
parent d8e0c8a89e
commit 1294f9ee4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 24 additions and 208 deletions

View file

@ -32,22 +32,6 @@ RSpec.describe ReblogService, type: :service do
end
end
context 'OStatus' do
let(:bob) { Fabricate(:account, username: 'bob', domain: 'example.com', salmon_url: 'http://salmon.example.com') }
let(:status) { Fabricate(:status, account: bob, uri: 'tag:example.com;something:something') }
subject { ReblogService.new }
before do
stub_request(:post, 'http://salmon.example.com')
subject.call(alice, status)
end
it 'creates a reblog' do
expect(status.reblogs.count).to eq 1
end
end
context 'ActivityPub' do
let(:bob) { Fabricate(:account, username: 'bob', protocol: :activitypub, domain: 'example.com', inbox_url: 'http://example.com/inbox') }
let(:status) { Fabricate(:status, account: bob) }