Merge remote-tracking branch 'upstream/develop' into mrf-silence

This commit is contained in:
Alex Gleason 2020-07-29 13:01:16 -05:00
commit 702f0fb822
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
35 changed files with 721 additions and 40 deletions

View file

@ -78,5 +78,15 @@ defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrependedTest do
assert {:ok, res} = EnsureRePrepended.filter(message)
assert res == message
end
test "it skips if the object is only a reference" do
message = %{
"type" => "Create",
"object" => "somereference"
}
assert {:ok, res} = EnsureRePrepended.filter(message)
assert res == message
end
end
end