diff options
author | Mark Felder <feld@feld.me> | 2024-08-07 21:51:43 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-08-07 21:51:43 -0400 |
commit | ca934b744f9c6095315421990975c1e9a7b9cd85 (patch) | |
tree | c23f45fc410c1e8d4bf96d91d53fe72c49f8f138 | |
parent | 526a57ff9fe2be729c6e4d95f3eb5991047c41a2 (diff) | |
download | pleroma-ca934b744f9c6095315421990975c1e9a7b9cd85.tar.gz pleroma-ca934b744f9c6095315421990975c1e9a7b9cd85.zip |
Remove validation for cc fields on Blocks
-rw-r--r-- | lib/pleroma/web/activity_pub/object_validators/block_validator.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/object_validators/block_validator.ex b/lib/pleroma/web/activity_pub/object_validators/block_validator.ex index 0de87a27e..98340545c 100644 --- 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) |