forked from potsda.mn/mobilizon
Fix event language not allowed to be null
If the event language wasn't previously defined, it's not "und" Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2b399ac1df
commit
147ea64483
|
@ -113,6 +113,7 @@ Please read the [UPGRADE.md](https://framagit.org/framasoft/mobilizon/-/blob/mai
|
||||||
- Fixed padding below truncated title of event cards
|
- Fixed padding below truncated title of event cards
|
||||||
- Fixed exports that weren't enabled in Docker
|
- Fixed exports that weren't enabled in Docker
|
||||||
- Fixed error page when event end date is null
|
- Fixed error page when event end date is null
|
||||||
|
- Fixed event language not being allowed to be null
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ defmodule Mobilizon.GraphQL.Schema.Discussions.CommentType do
|
||||||
description: "Whether this comment needs to be announced to participants"
|
description: "Whether this comment needs to be announced to participants"
|
||||||
)
|
)
|
||||||
|
|
||||||
field(:language, non_null(:string), description: "The comment language")
|
field(:language, :string, description: "The comment language")
|
||||||
end
|
end
|
||||||
|
|
||||||
@desc "The list of visibility options for a comment"
|
@desc "The list of visibility options for a comment"
|
||||||
|
|
|
@ -104,7 +104,7 @@ defmodule Mobilizon.GraphQL.Schema.EventType do
|
||||||
field(:inserted_at, :datetime, description: "When the event was created")
|
field(:inserted_at, :datetime, description: "When the event was created")
|
||||||
field(:options, :event_options, description: "The event options")
|
field(:options, :event_options, description: "The event options")
|
||||||
field(:metadata, list_of(:event_metadata), description: "A key-value list of metadata")
|
field(:metadata, list_of(:event_metadata), description: "A key-value list of metadata")
|
||||||
field(:language, non_null(:string), description: "The event language")
|
field(:language, :string, description: "The event language")
|
||||||
end
|
end
|
||||||
|
|
||||||
@desc "The list of visibility options for an event"
|
@desc "The list of visibility options for an event"
|
||||||
|
|
|
@ -20,7 +20,7 @@ defmodule Mobilizon.GraphQL.Schema.PostType do
|
||||||
field(:publish_at, :datetime, description: "When the post was published")
|
field(:publish_at, :datetime, description: "When the post was published")
|
||||||
field(:inserted_at, :datetime, description: "The post's creation date")
|
field(:inserted_at, :datetime, description: "The post's creation date")
|
||||||
field(:updated_at, :datetime, description: "The post's last update date")
|
field(:updated_at, :datetime, description: "The post's last update date")
|
||||||
field(:language, non_null(:string), description: "The post language")
|
field(:language, :string, description: "The post language")
|
||||||
|
|
||||||
field(:tags, list_of(:tag),
|
field(:tags, list_of(:tag),
|
||||||
resolve: &Tag.list_tags_for_post/3,
|
resolve: &Tag.list_tags_for_post/3,
|
||||||
|
|
Loading…
Reference in a new issue