LikeValidator: Add defaults for recipients back in.
authorlain <lain@soykaf.club>
Tue, 5 May 2020 08:38:59 +0000 (10:38 +0200)
committerlain <lain@soykaf.club>
Tue, 5 May 2020 08:38:59 +0000 (10:38 +0200)
lib/pleroma/web/activity_pub/object_validators/like_validator.ex

index d835b052e1033d308d16a8c1a47defcc1b124d30..034f25492d5affab99bda6d113bc58c29c950419 100644 (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