Apply suggestion to lib/pleroma/web/activity_pub/object_validators/create_validator.ex
This commit is contained in:
parent
6c1232b486
commit
74560e888e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user