Handle 401s as I have observed it in the wild

This commit is contained in:
Mark Felder 2023-12-28 23:09:33 -05:00
commit aa070c7daf
2 changed files with 2 additions and 2 deletions

View file

@ -219,7 +219,7 @@ defmodule Pleroma.Object.Fetcher do
{:error, {:content_type, nil}}
end
{:ok, %{status: 403}} ->
{:ok, %{status: code}} when code in [401, 403] ->
{:error, :forbidden}
{:ok, %{status: code}} when code in [404, 410] ->