Handle HTTP "410 Gone" response
This commit is contained in:
parent
822a9f28d0
commit
afae3ada22
2 changed files with 22 additions and 5 deletions
|
|
@ -85,6 +85,9 @@ defmodule Pleroma.Object.Fetcher do
|
|||
:ok <- Containment.contain_origin_from_id(id, data) do
|
||||
{:ok, data}
|
||||
else
|
||||
{:ok, %{status: 410}} ->
|
||||
{:error, "Object has been deleted"}
|
||||
|
||||
e ->
|
||||
{:error, e}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue