ActivityPub: Add back debug call + explanation.

This commit is contained in:
lain 2020-10-26 16:33:26 +01:00
parent 9542c5d0f4
commit de6d49c8ce
1 changed files with 5 additions and 0 deletions

View File

@ -1378,6 +1378,11 @@ def fetch_and_prepare_user_from_ap_id(ap_id, opts \\ []) 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}