forked from AkkomaGang/akkoma
Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex
This commit is contained in:
parent
6c1232b486
commit
74560e888e
1 changed files with 1 additions and 2 deletions
|
@ -25,7 +25,6 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
|
||||||
end
|
end
|
||||||
|
|
||||||
def cast_data(data) do
|
def cast_data(data) do
|
||||||
%__MODULE__{}
|
cast(%__MODULE__{}, data, __schema__(:fields))
|
||||||
|> cast(data, __schema__(:fields))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue