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

This commit is contained in:
Oneric 2025-11-23 00:00:00 +00:00 committed by Phantasm
commit 409698ca63
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -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