1
0
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:
lain 2020-03-26 15:44:14 +01:00
parent 0adaab8e75
commit 0c60c0a76a
3 changed files with 3 additions and 3 deletions

View File

@ -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})

View File

@ -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)

View File

@ -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: [])