1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-26 09:35:14 +01:00

ActivityPub: Add back debug call + explanation.

This commit is contained in:
lain 2020-10-26 16:33:26 +01:00
parent 9542c5d0f4
commit de6d49c8ce

View File

@ -1378,6 +1378,11 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
{:ok, data} <- user_data_from_user_object(data) do {:ok, data} <- user_data_from_user_object(data) do
{:ok, maybe_update_follow_information(data)} {:ok, maybe_update_follow_information(data)}
else else
# If this has been deleted, only log a debug and not an error
{:error, "Object has been deleted" = e} ->
Logger.debug("Could not decode user at fetch #{ap_id}, #{inspect(e)}")
{:error, e}
{:error, {:reject, reason} = e} -> {:error, {:reject, reason} = e} ->
Logger.info("Rejected user #{ap_id}: #{inspect(reason)}") Logger.info("Rejected user #{ap_id}: #{inspect(reason)}")
{:error, e} {:error, e}