commit: 526a57ff9fe2be729c6e4d95f3eb5991047c41a2
parent fcda1b5e2aeb166dfd84ff17d1840fcfbd6f1490
Author: Mark Felder <feld@feld.me>
Date: Wed, 7 Aug 2024 21:51:22 -0400
Remove validation for cc fields on Follow Accept/Reject
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/web/activity_pub/object_validators/accept_reject_validator.ex b/lib/pleroma/web/activity_pub/object_validators/accept_reject_validator.ex
@@ -29,7 +29,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.AcceptRejectValidator 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, ["Accept", "Reject"])
|> validate_actor_presence()
|> validate_object_presence(allowed_types: ["Follow"])