SideEffects: Use Object.normalize to get the object.
This commit is contained in:
parent
906cf53ab9
commit
f8e56d4271
@ -30,8 +30,8 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle(%{data: %{"type" => "Create", "object" => object_id}} = activity, meta) do
|
def handle(%{data: %{"type" => "Create"}} = activity, meta) do
|
||||||
object = Object.get_by_ap_id(object_id)
|
object = Object.normalize(activity, false)
|
||||||
|
|
||||||
{:ok, _object} = handle_object_creation(object)
|
{:ok, _object} = handle_object_creation(object)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user