From: Haelwenn (lanodan) Monnier Date: Tue, 25 Aug 2020 07:19:53 +0000 (+0200) Subject: transmogrifier: Call strip_internal_fields on pipeline ingestion X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b73e9ef68689a7094e80e2affa0af9b05e86effb;p=akkoma transmogrifier: Call strip_internal_fields on pipeline ingestion --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index af4384213..ec3b24206 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -550,6 +550,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do _options ) when objtype in ~w{Question Answer ChatMessage Audio Event} do + data = Map.put(data, "object", strip_internal_fields(data["object"])) + with {:ok, %User{}} <- ObjectValidator.fetch_actor(data), {:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do {:ok, activity}