From: Haelwenn (lanodan) Monnier Date: Thu, 27 Sep 2018 09:10:54 +0000 (+0200) Subject: transmogrifier: Use the correct variable and prefer inspect in case of a bad type... X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;ds=inline;h=e53da692fbdae3bcf9a7d528bf0d6bd170669052;hp=d830a243a34b1c41ac81f368bce565285bd89ab7;p=akkoma transmogrifier: Use the correct variable and prefer inspect in case of a bad type being passed on --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 611c0e623..7bdb9594a 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -126,12 +126,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do |> Map.put("context", replied_object.data["context"] || object["conversation"]) else e -> - Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") + Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}") object end e -> - Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") + Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}") object end end