diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-03-15 16:21:23 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-03-15 16:22:18 +0100 |
commit | 48c22a67dec0b55a1bc48ffc4229352248bceb26 (patch) | |
tree | 85f59b9b9913c7b14ed0dcf4927ea18632349330 | |
parent | 8b651fab1d711a18e8046271a83bcdd756a26670 (diff) | |
download | pleroma-48c22a67dec0b55a1bc48ffc4229352248bceb26.tar.gz pleroma-48c22a67dec0b55a1bc48ffc4229352248bceb26.zip |
QuestionOptionsValidator: set default AS types
-rw-r--r-- | lib/pleroma/web/activity_pub/object_validators/question_options_validator.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/object_validators/question_options_validator.ex b/lib/pleroma/web/activity_pub/object_validators/question_options_validator.ex index 541945fa4..8d7f7b9fa 100644 --- a/lib/pleroma/web/activity_pub/object_validators/question_options_validator.ex +++ b/lib/pleroma/web/activity_pub/object_validators/question_options_validator.ex @@ -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 |