Pipeline Ingestion: Audio

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-08-18 01:48:42 +02:00
commit 2bc08d5573
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
4 changed files with 129 additions and 4 deletions

View file

@ -340,7 +340,8 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
end
end
def handle_object_creation(%{"type" => "Question"} = object, meta) do
def handle_object_creation(%{"type" => objtype} = object, meta)
when objtype in ~w[Audio Question] do
with {:ok, object, meta} <- Pipeline.common_pipeline(object, meta) do
{:ok, object, meta}
end