Fix tests

Need to handle the edge case of no valid HTTP response which has no status code
This commit is contained in:
Mark Felder 2023-12-29 12:18:23 -05:00
commit 833117f573
2 changed files with 8 additions and 1 deletions

View file

@ -128,6 +128,12 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
%{status: 410} -> {:discard, :not_found}
_ -> {:error, e}
end
e ->
unless params[:unreachable_since], do: Instances.set_unreachable(inbox)
Logger.metadata(activity: id, inbox: inbox)
Logger.error("Publisher failed to inbox #{inbox} #{inspect(e)}")
{:error, e}
end
end