fed/out: ensure we never serve Updates for objects we deem static
This commit is contained in:
parent
f8db412af4
commit
409698ca63
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue