Explicitly handle the GET and HEAD errors
This commit is contained in:
parent
1e0d5934d5
commit
f753bd3380
@ -22,6 +22,10 @@ defmodule Pleroma.Workers.RichMediaWorker do
|
||||
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
||||
{:cancel, type}
|
||||
|
||||
{:error, type}
|
||||
when type in [:get, :head] ->
|
||||
{:error, type}
|
||||
|
||||
error ->
|
||||
{:error, error}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user