LikeValidator: Use Recipients Type.
authorlain <lain@soykaf.club>
Wed, 29 Apr 2020 17:08:36 +0000 (19:08 +0200)
committerlain <lain@soykaf.club>
Wed, 29 Apr 2020 17:08:36 +0000 (19:08 +0200)
lib/pleroma/web/activity_pub/object_validators/like_validator.ex

index 49546ceaaa22c33d331e5c5f9cb9818fa147da1c..eeb0da192246852a40803fd376e1e7ca2ebed8f2 100644 (file)
@@ -19,8 +19,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
     field(:object, Types.ObjectID)
     field(:actor, Types.ObjectID)
     field(:context, :string)
-    field(:to, {:array, :string})
-    field(:cc, {:array, :string})
+    field(:to, Types.Recipients)
+    field(:cc, Types.Recipients)
   end
 
   def cast_and_validate(data) do