QuestionOptionsValidator: set default AS types

This commit is contained in:
Haelwenn (lanodan) Monnier 2024-03-15 16:21:23 +01:00
parent 8b651fab1d
commit 48c22a67de
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.QuestionOptionsValidator do
embeds_one :replies, Replies, primary_key: false do
field(:totalItems, :integer)
field(:type, :string)
field(:type, :string, default: "Collection")
end
field(:type, :string)
field(:type, :string, default: "Note")
end
def changeset(struct, data) do