Fix pinned posts relying on embded objects
authorrinpatch <rinpatch@sdf.org>
Wed, 17 Apr 2019 09:34:19 +0000 (12:34 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 17 Apr 2019 09:34:19 +0000 (12:34 +0300)
lib/pleroma/web/common_api/common_api.ex

index 9c3daac2c994c49d323f35c60f419fce1e031024..d6eb843f7c2a10b79117e62046b59b0f8adf8d3a 100644 (file)
@@ -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"
              }