logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: ca934b744f9c6095315421990975c1e9a7b9cd85
parent 526a57ff9fe2be729c6e4d95f3eb5991047c41a2
Author: Mark Felder <feld@feld.me>
Date:   Wed,  7 Aug 2024 21:51:43 -0400

Remove validation for cc fields on Blocks

Diffstat:

Mlib/pleroma/web/activity_pub/object_validators/block_validator.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/activity_pub/object_validators/block_validator.ex b/lib/pleroma/web/activity_pub/object_validators/block_validator.ex @@ -29,7 +29,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.BlockValidator do defp validate_data(cng) do cng - |> validate_required([:id, :type, :actor, :to, :cc, :object]) + |> validate_required([:id, :type, :actor, :to, :object]) |> validate_inclusion(:type, ["Block"]) |> CommonValidations.validate_actor_presence() |> CommonValidations.validate_actor_presence(field_name: :object)