Fetch statuses/following/followers numbers from ActivityPub collections (#4840)
This commit is contained in:
parent
7c2d84910c
commit
a4caa7eb62
3 changed files with 39 additions and 8 deletions
|
@ -2,12 +2,16 @@ require 'rails_helper'
|
|||
|
||||
RSpec.describe ActivityPub::Activity::Update do
|
||||
let!(:sender) { Fabricate(:account) }
|
||||
|
||||
|
||||
before do
|
||||
stub_request(:get, actor_json[:outbox]).to_return(status: 404)
|
||||
stub_request(:get, actor_json[:followers]).to_return(status: 404)
|
||||
stub_request(:get, actor_json[:following]).to_return(status: 404)
|
||||
|
||||
sender.update!(uri: ActivityPub::TagManager.instance.uri_for(sender))
|
||||
end
|
||||
|
||||
let(:modified_sender) do
|
||||
let(:modified_sender) do
|
||||
sender.dup.tap do |modified_sender|
|
||||
modified_sender.display_name = 'Totally modified now'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue