Remove validation for cc fields on Blocks

This commit is contained in:
Mark Felder 2024-08-07 21:51:43 -04:00
parent 526a57ff9f
commit ca934b744f

View file

@ -29,7 +29,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.BlockValidator do
defp validate_data(cng) do defp validate_data(cng) do
cng cng
|> validate_required([:id, :type, :actor, :to, :cc, :object]) |> validate_required([:id, :type, :actor, :to, :object])
|> validate_inclusion(:type, ["Block"]) |> validate_inclusion(:type, ["Block"])
|> CommonValidations.validate_actor_presence() |> CommonValidations.validate_actor_presence()
|> CommonValidations.validate_actor_presence(field_name: :object) |> CommonValidations.validate_actor_presence(field_name: :object)