From 409698ca632f7a4884a8a8b809614c481e77a254 Mon Sep 17 00:00:00 2001 From: Oneric Date: Sun, 23 Nov 2025 00:00:00 +0000 Subject: [PATCH] fed/out: ensure we never serve Updates for objects we deem static --- lib/pleroma/web/activity_pub/transmogrifier.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 00339fad9..c9cd91e9e 100644 --- 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