From: William Pitcock Date: Sun, 25 Nov 2018 19:00:05 +0000 (+0000) Subject: common api: utils: access inReplyTo object ID correctly X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=67038ae15e1f4a0b136388416af23547d82cbd0d;p=akkoma common api: utils: access inReplyTo object ID correctly --- diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 728f24c7e..ec66452c2 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -177,8 +177,10 @@ defmodule Pleroma.Web.CommonAPI.Utils do } if inReplyTo do + inReplyToObject = Object.normalize(inReplyTo.data["object"]) + object - |> Map.put("inReplyTo", inReplyTo.data["object"]["id"]) + |> Map.put("inReplyTo", inReplyToObject.data["id"]) |> Map.put("inReplyToStatusId", inReplyTo.id) else object