Revert Activity tombstones, add ObjectTombstone struct

This commit is contained in:
Maxim Filippov 2018-12-25 03:00:06 +03:00
commit f75f707f6c
9 changed files with 43 additions and 62 deletions

View file

@ -32,6 +32,8 @@ defmodule Pleroma.ObjectTest do
found_object = Object.get_by_ap_id(object.data["id"])
refute object == found_object
assert found_object.data["type"] == "Tombstone"
end
test "ensures cache is cleared for the object" do
@ -47,6 +49,8 @@ defmodule Pleroma.ObjectTest do
cached_object = Object.get_cached_by_ap_id(object.data["id"])
refute object == cached_object
assert cached_object.data["type"] == "Tombstone"
end
end
end