From: rinpatch Date: Wed, 17 Apr 2019 09:34:19 +0000 (+0300) Subject: Fix pinned posts relying on embded objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=462028688b7050bb2335914b0987632082fdf3c8;p=akkoma Fix pinned posts relying on embded objects --- diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 9c3daac2c..d6eb843f7 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -217,8 +217,10 @@ defmodule Pleroma.Web.CommonAPI do with %Activity{ actor: ^user_ap_id, data: %{ - "type" => "Create", - "object" => %{ + "type" => "Create" + }, + object: %Object{ + data: %{ "to" => object_to, "type" => "Note" }