logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 1f3ac66844e3a5f3e85aa0fb2afd23a2bc706f8b
parent c45ee5fc820573f120d7790b342f64f6c77fdf35
Author: Mint <mint@plagu.ee>
Date:   Thu, 18 Jul 2024 18:00:40 +0300

Transmogrifier: handle non-validate errors on incoming Delete activities

This should fix WithClauseError resulting in Oban jobs for processing
incoming deletes being retried without getting cancelled when those
deletes are MRF rejected.

Diffstat:

Achangelog.d/handle-non-validate-delete-errors.change1+
Mlib/pleroma/web/activity_pub/transmogrifier.ex1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/changelog.d/handle-non-validate-delete-errors.change b/changelog.d/handle-non-validate-delete-errors.change @@ -0,0 +1 @@ +Transmogrifier: handle non-validate errors on incoming Delete activities diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -530,6 +530,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do else _ -> e end + e -> {:error, e} end end