Remove validation for cc fields on Follow Accept/Reject
This commit is contained in:
parent
fcda1b5e2a
commit
526a57ff9f
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, ["Accept", "Reject"])
|
||||
|> validate_actor_presence()
|
||||
|> validate_object_presence(allowed_types: ["Follow"])
|
||||
|
|
Loading…
Reference in a new issue