From: lain Date: Tue, 24 Mar 2020 18:20:58 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=74560e888e5e3e4dc2fa5b4fec4cf3986a1d1a55;p=akkoma Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex --- diff --git a/lib/pleroma/web/activity_pub/object_validators/create_validator.ex b/lib/pleroma/web/activity_pub/object_validators/create_validator.ex index 9e480c4ed..872a12c48 100644 --- a/lib/pleroma/web/activity_pub/object_validators/create_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validators/create_validator.ex @@ -25,7 +25,6 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do end def cast_data(data) do - %__MODULE__{} - |> cast(data, __schema__(:fields)) + cast(%__MODULE__{}, data, __schema__(:fields)) end end