Discard on a 404 as well
This commit is contained in:
parent
7ebca7ecfa
commit
141702538b
|
@ -124,6 +124,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa
|
|||
|
||||
case response do
|
||||
%{status: 403} -> {:discard, :forbidden}
|
||||
%{status: 404} -> {:discard, :not_found}
|
||||
%{status: 410} -> {:discard, :not_found}
|
||||
_ -> {:error, response}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue