From 1e0d5934d53f95ac7737e844cf060d2cfe1be98d Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 17 Jul 2024 12:51:38 -0400 Subject: [PATCH] Fix return for cancelling job --- lib/pleroma/workers/rich_media_worker.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/workers/rich_media_worker.ex b/lib/pleroma/workers/rich_media_worker.ex index 0db97633f..a94a85ec7 100644 --- a/lib/pleroma/workers/rich_media_worker.ex +++ b/lib/pleroma/workers/rich_media_worker.ex @@ -20,7 +20,7 @@ defmodule Pleroma.Workers.RichMediaWorker do {:error, type} when type in [:invalid_metadata, :body_too_large, :content_type, :validate] -> - :cancel + {:cancel, type} error -> {:error, error}