Transmogrifier: Don't fetch actor that's guaranteed to be there.

This commit is contained in:
lain 2020-05-03 12:51:28 +02:00
commit 4dfc617cdf
2 changed files with 7 additions and 26 deletions

View file

@ -733,8 +733,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
%{"type" => "Delete"} = data,
_options
) do
with {:ok, %User{}} <- ObjectValidator.fetch_actor(data),
{:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
with {:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
{:ok, activity}
end
end