Fix return for cancelling job

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

View File

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