Explicitly handle the GET and HEAD errors

This commit is contained in:
Mark Felder 2024-07-17 13:12:51 -04:00
parent 1e0d5934d5
commit f753bd3380

View File

@ -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