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}