summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-17 21:56:33 +0100
committerlain <lain@soykaf.club>2018-02-17 21:56:33 +0100
commit5e36b750c1f98c440f4edcb9bb5bac5e6f93278f (patch)
treebd4792d1dcb5e0f6c1cd7a2ca86e6915b41836e0 /test
parent0f2ad25a7b1125c1e945d474a1873773fdfee26a (diff)
downloadpleroma-5e36b750c1f98c440f4edcb9bb5bac5e6f93278f.tar.gz
pleroma-5e36b750c1f98c440f4edcb9bb5bac5e6f93278f.zip
ActivityPub: Fetch an object from an id.
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/activity_pub_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs
index 4817a9f38..be81e75aa 100644
--- a/test/web/activity_pub/activity_pub_test.exs
+++ b/test/web/activity_pub/activity_pub_test.exs
@@ -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)