From f753bd33805159a08cc8b447daa1c9ace137deab Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 17 Jul 2024 13:12:51 -0400 Subject: [PATCH] Explicitly handle the GET and HEAD errors --- lib/pleroma/workers/rich_media_worker.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pleroma/workers/rich_media_worker.ex b/lib/pleroma/workers/rich_media_worker.ex index a94a85ec7..30f9d9e9e 100644 --- a/lib/pleroma/workers/rich_media_worker.ex +++ b/lib/pleroma/workers/rich_media_worker.ex @@ -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