From: lain Date: Tue, 5 May 2020 08:38:59 +0000 (+0200) Subject: LikeValidator: Add defaults for recipients back in. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f21f53829339115e9a6cc9066d09026345047b43;p=akkoma LikeValidator: Add defaults for recipients back in. --- 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 d835b052e..034f25492 100644 --- a/lib/pleroma/web/activity_pub/object_validators/like_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validators/like_validator.ex @@ -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