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

View File

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