mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-11-18 07:36:28 +01:00
Validators: Use correct type for IDs.
This commit is contained in:
parent
0adaab8e75
commit
0c60c0a76a
@ -13,7 +13,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.CreateNoteValidator 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})
|
||||
|
@ -14,7 +14,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.LikeValidator do
|
||||
@primary_key false
|
||||
|
||||
embedded_schema do
|
||||
field(:id, :string, primary_key: true)
|
||||
field(:id, Types.ObjectID, primary_key: true)
|
||||
field(:type, :string)
|
||||
field(:object, Types.ObjectID)
|
||||
field(:actor, Types.ObjectID)
|
||||
|
@ -12,7 +12,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.NoteValidator do
|
||||
@primary_key false
|
||||
|
||||
embedded_schema do
|
||||
field(:id, :string, primary_key: true)
|
||||
field(:id, Types.ObjectID, primary_key: true)
|
||||
field(:to, {:array, :string}, default: [])
|
||||
field(:cc, {:array, :string}, default: [])
|
||||
field(:bto, {:array, :string}, default: [])
|
||||
|
Loading…
Reference in New Issue
Block a user