forked from AkkomaGang/akkoma
SideEffects: Use Object.normalize to get the object.
This commit is contained in:
parent
906cf53ab9
commit
f8e56d4271
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ def handle(%{data: %{"type" => "Like"}} = object, meta) 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 a new issue