Undoing: Move undoing blocks to the pipeline everywhere.

This commit is contained in:
lain 2020-05-05 18:00:37 +02:00
commit 92caae5923
10 changed files with 63 additions and 172 deletions

View file

@ -176,9 +176,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.UndoHandlingTest do
{:ok, %Activity{data: data, local: false}} = Transmogrifier.handle_incoming(data)
assert data["type"] == "Undo"
assert data["object"]["type"] == "Block"
assert data["object"]["object"] == user.ap_id
assert data["actor"] == "http://mastodon.example.org/users/admin"
assert data["object"] == block_data["id"]
blocker = User.get_cached_by_ap_id(data["actor"])