ActivityPub: Fetch an object from an id.

This commit is contained in:
lain 2018-02-17 21:56:33 +01:00
commit 5e36b750c1
2 changed files with 19 additions and 0 deletions

View file

@ -265,6 +265,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
end
end
describe "fetching an object" do
test "it fetches an existing object" do
{:ok, object} = ActivityPub.fetch_object_from_id("http://mastodon.example.org/@admin/99541947525187367")
end
end
describe "following / unfollowing" do
test "creates a follow activity" do
follower = insert(:user)