logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 409698ca632f7a4884a8a8b809614c481e77a254
parent f8db412af42dad0eb5f3510030fc089dba77d822
Author: Oneric <oneric@oneric.stub>
Date:   Sun, 23 Nov 2025 00:00:00 +0000

fed/out: ensure we never serve Updates for objects we deem static

Diffstat:

Mlib/pleroma/web/activity_pub/transmogrifier.ex4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -851,6 +851,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do {:ok, data} end + def prepare_outgoing(%{"type" => "Update", "object" => %{}} = data) do + raise "Requested to serve an Update for non-updateable object type: #{inspect(data)}" + end + def prepare_outgoing(%{"type" => "Announce", "actor" => ap_id, "object" => object_id} = data) do object = object_id