1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00

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
parent f8db412af4
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