LikeValidator: Add defaults for recipients back in.

This commit is contained in:
lain 2020-05-05 10:38:59 +02:00
parent 2cb3f8a8cf
commit f21f538293

View File

@ -20,8 +20,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
field(:object, Types.ObjectID)
field(:actor, Types.ObjectID)
field(:context, :string)
field(:to, Types.Recipients)
field(:cc, Types.Recipients)
field(:to, Types.Recipients, default: [])
field(:cc, Types.Recipients, default: [])
end
def cast_and_validate(data) do