1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-be.git synced 2025-04-02 16:59:13 +02:00

LikeValidator: Use Recipients Type.

This commit is contained in:
lain 2020-04-29 19:08:36 +02:00
parent b8056e69e0
commit 78c864cbee

View file

@ -19,8 +19,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, {:array, :string}) field(:to, Types.Recipients)
field(:cc, {:array, :string}) field(:cc, Types.Recipients)
end end
def cast_and_validate(data) do def cast_and_validate(data) do