Allow to dereference Follow object for ActivityPub (#5772)
* Allow to dereference Follow object for ActivityPub * Accept IRI as object representation for Accept activity
This commit is contained in:
parent
53d99ebf4f
commit
161c72d66d
10 changed files with 134 additions and 31 deletions
|
@ -27,4 +27,12 @@ RSpec.describe FollowRequest, type: :model do
|
|||
expect(follow_request.account.muting_reblogs?(target)).to be true
|
||||
end
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
let(:follow_request) { Fabricate(:follow_request) }
|
||||
|
||||
it 'equals to :follow' do
|
||||
expect(follow_request.object_type).to eq :follow
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue