LikeValidator: Add defaults for recipients back in.
This commit is contained in:
parent
2cb3f8a8cf
commit
f21f538293
@ -20,8 +20,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
|
|||||||
field(:object, Types.ObjectID)
|
field(:object, Types.ObjectID)
|
||||||
field(:actor, Types.ObjectID)
|
field(:actor, Types.ObjectID)
|
||||||
field(:context, :string)
|
field(:context, :string)
|
||||||
field(:to, Types.Recipients)
|
field(:to, Types.Recipients, default: [])
|
||||||
field(:cc, Types.Recipients)
|
field(:cc, Types.Recipients, default: [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def cast_and_validate(data) do
|
def cast_and_validate(data) do
|
||||||
|
Loading…
Reference in New Issue
Block a user