Remove validation for cc fields on Blocks
This commit is contained in:
parent
526a57ff9f
commit
ca934b744f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def cast_data(data) 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)
|
||||
|
|
Loading…
Reference in a new issue