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
15 changed files with 24 additions and 208 deletions

View File

@ -17,19 +17,6 @@ RSpec.describe BlockService, type: :service do
end
end
describe 'remote OStatus' do
let(:bob) { Fabricate(:user, email: 'bob@example.com', account: Fabricate(:account, username: 'bob', domain: 'example.com', salmon_url: 'http://salmon.example.com')).account }
before do
stub_request(:post, "http://salmon.example.com/").to_return(:status => 200, :body => "", :headers => {})
subject.call(sender, bob)
end
it 'creates a blocking relation' do
expect(sender.blocking?(bob)).to be true
end
end
describe 'remote ActivityPub' do
let(:bob) { Fabricate(:user, email: 'bob@example.com', account: Fabricate(:account, username: 'bob', protocol: :activitypub, domain: 'example.com', inbox_url: 'http://example.com/inbox')).account }