logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: c5ca806aa0023e25755947a3bf0d54242e45f65a
parent 380a6a6df31a16a89f5c5cc497ddc1360cea3854
Author: Mark Felder <feld@feld.me>
Date:   Wed, 28 Aug 2024 17:57:34 -0400

Add back one of the duplicate checks to fix a test, document where it comes from

Diffstat:

Mlib/pleroma/workers/receiver_worker.ex2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex @@ -69,6 +69,8 @@ defmodule Pleroma.Workers.ReceiverWorker do # Validator will error and return a changeset error # e.g., duplicate activities or if the object was deleted {:error, {:validate, {:error, _changeset} = reason}} -> {:cancel, reason} + # Duplicate detection during Normalization + {:error, :already_present} -> {:cancel, :already_present} # MRFs will return a reject {:error, {:reject, _} = reason} -> {:cancel, reason} # HTTP Sigs