projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LikeValidator: Fix up context.
[akkoma]
/
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 9e480c4ed16f2194e0ba7d3c98b03b22565c2f01..926804ce74c18311fbf0516e9ea8ae7a21245b75 100644
(file)
--- a/
lib/pleroma/web/activity_pub/object_validators/create_validator.ex
+++ b/
lib/pleroma/web/activity_pub/object_validators/create_validator.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
@@
-13,7
+13,7
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
@primary_key false
embedded_schema do
@primary_key false
embedded_schema do
- field(:id,
:string
, primary_key: true)
+ field(:id,
Types.ObjectID
, primary_key: true)
field(:actor, Types.ObjectID)
field(:type, :string)
field(:to, {:array, :string})
field(:actor, Types.ObjectID)
field(:type, :string)
field(:to, {:array, :string})
@@
-25,7
+25,6
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator do
end
def cast_data(data) do
end
def cast_data(data) do
- %__MODULE__{}
- |> cast(data, __schema__(:fields))
+ cast(%__MODULE__{}, data, __schema__(:fields))
end
end
end
end