mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-21 22:48:13 +00:00
Explicitly handle the GET and HEAD errors
This commit is contained in:
parent
1e0d5934d5
commit
f753bd3380
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ defmodule Pleroma.Workers.RichMediaWorker do
|
||||||
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
||||||
{:cancel, type}
|
{:cancel, type}
|
||||||
|
|
||||||
|
{:error, type}
|
||||||
|
when type in [:get, :head] ->
|
||||||
|
{:error, type}
|
||||||
|
|
||||||
error ->
|
error ->
|
||||||
{:error, error}
|
{:error, error}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue