ActivityPub: Make fake Create activities for objects without one.
This commit is contained in:
parent
fc9d361d17
commit
77c6c424a6
4 changed files with 40 additions and 4 deletions
|
|
@ -266,8 +266,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
|||
end
|
||||
|
||||
describe "fetching an object" do
|
||||
test "it fetches an existing object" do
|
||||
test "it fetches an object" do
|
||||
{:ok, object} = ActivityPub.fetch_object_from_id("http://mastodon.example.org/@admin/99541947525187367")
|
||||
assert Activity.get_create_activity_by_object_ap_id(object.data["id"])
|
||||
{:ok, object_again} = ActivityPub.fetch_object_from_id("http://mastodon.example.org/@admin/99541947525187367")
|
||||
|
||||
assert object == object_again
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue