Pipeline: Unify embedded_object / object_data, move to validator.
This commit is contained in:
parent
762c9ea564
commit
9e6f4694dd
5 changed files with 12 additions and 10 deletions
|
|
@ -312,13 +312,12 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
|
|||
}
|
||||
end
|
||||
|
||||
test "deletes the original block, but sets `embedded_object`", %{
|
||||
test "deletes the original block", %{
|
||||
block_undo: block_undo,
|
||||
block: block
|
||||
} do
|
||||
{:ok, _block_undo, meta} = SideEffects.handle(block_undo)
|
||||
{:ok, _block_undo, _meta} = SideEffects.handle(block_undo)
|
||||
|
||||
assert meta[:embedded_object] == block.data
|
||||
refute Activity.get_by_id(block.id)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue