From: lain Date: Wed, 29 Apr 2020 17:08:36 +0000 (+0200) Subject: LikeValidator: Use Recipients Type. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=78c864cbeed8fcdbe80e2842377d4fabc9362f3c;p=akkoma LikeValidator: Use Recipients Type. --- diff --git a/lib/pleroma/web/activity_pub/object_validators/like_validator.ex b/lib/pleroma/web/activity_pub/object_validators/like_validator.ex index 49546ceaa..eeb0da192 100644 --- a/lib/pleroma/web/activity_pub/object_validators/like_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validators/like_validator.ex @@ -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