logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: f753bd33805159a08cc8b447daa1c9ace137deab
parent 1e0d5934d53f95ac7737e844cf060d2cfe1be98d
Author: Mark Felder <feld@feld.me>
Date:   Wed, 17 Jul 2024 13:12:51 -0400

Explicitly handle the GET and HEAD errors

Diffstat:

Mlib/pleroma/workers/rich_media_worker.ex4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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