Transmogrifier: Use new ingestion pipeline for Likes.

This commit is contained in:
lain 2019-10-16 17:03:21 +02:00
commit 081e8206ab
3 changed files with 40 additions and 8 deletions

View file

@ -32,6 +32,18 @@ defmodule Pleroma.Object.Containment do
get_actor(%{"actor" => actor})
end
def get_object(%{"object" => id}) when is_binary(id) do
id
end
def get_object(%{"object" => %{"id" => id}}) when is_binary(id) do
id
end
def get_object(_) do
nil
end
@doc """
Checks that an imported AP object's actor matches the domain it came from.
"""