Skip to content
Snippets Groups Projects
Verified Commit 499a4591 authored by Haelwenn's avatar Haelwenn
Browse files

Web.ActivityPub.ActivityPubTest: test against inserting activities with content: null

parent 15aa45ae
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,17 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
assert {:error, {:remote_limit_error, _}} = ActivityPub.insert(data)
end
test "doesn't drop activities with content being null" do
data = %{
"ok" => true,
"object" => %{
"content" => nil
}
}
assert {:ok, _} = ActivityPub.insert(data)
end
test "returns the activity if one with the same id is already in" do
activity = insert(:note_activity)
{:ok, new_activity} = ActivityPub.insert(activity.data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment