diff options
author | lain <lain@soykaf.club> | 2020-03-24 18:20:58 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-03-24 18:20:58 +0000 |
commit | 74560e888e5e3e4dc2fa5b4fec4cf3986a1d1a55 (patch) | |
tree | 255778bee74befd2bfec52fb779843e06dc781dc | |
parent | 6c1232b486dcad5a644b4292697d08ebe3000cb3 (diff) | |
download | pleroma-74560e888e5e3e4dc2fa5b4fec4cf3986a1d1a55.tar.gz |
Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex
-rw-r--r-- | lib/pleroma/web/activity_pub/object_validators/create_validator.ex | 3 |
1 files changed, 1 insertions, 2 deletions
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 |