Remove duplicate log messages from Transmogrifier

Object fetch errors are logged in the fetcher module
This commit is contained in:
Mark Felder 2023-12-27 21:39:17 -05:00 committed by Floatingghost
parent 3c54f407c5
commit d69cba1b93

View file

@ -25,7 +25,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
import Ecto.Query import Ecto.Query
require Logger
require Pleroma.Constants require Pleroma.Constants
@doc """ @doc """
@ -135,8 +134,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|> Map.put("context", replied_object.data["context"] || object["conversation"]) |> Map.put("context", replied_object.data["context"] || object["conversation"])
|> Map.drop(["conversation", "inReplyToAtomUri"]) |> Map.drop(["conversation", "inReplyToAtomUri"])
else else
e -> _ ->
Logger.warning("Couldn't fetch reply@#{inspect(in_reply_to_id)}, error: #{inspect(e)}")
object object
end end
else else
@ -163,6 +161,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
object object
end end
else else
{:quoting?, _} ->
object
_ ->
object object
end end
end end
@ -833,8 +835,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
relative_object do relative_object do
Map.put(data, "object", external_url) Map.put(data, "object", external_url)
else else
{:fetch, e} -> {:fetch, _} ->
Logger.error("Couldn't fetch fixed_object@#{object} #{inspect(e)}")
data data
_ -> _ ->