Discard on a 404 as well

This commit is contained in:
Mark Felder 2023-12-29 00:31:05 -05:00
parent 7ebca7ecfa
commit 141702538b
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa
case response do case response do
%{status: 403} -> {:discard, :forbidden} %{status: 403} -> {:discard, :forbidden}
%{status: 404} -> {:discard, :not_found}
%{status: 410} -> {:discard, :not_found} %{status: 410} -> {:discard, :not_found}
_ -> {:error, response} _ -> {:error, response}
end end