Fix default value for post visibility

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-02-04 12:28:39 +01:00
parent de734e02f1
commit 0db39af37e
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -56,7 +56,7 @@ defmodule Mobilizon.Posts.Post do
field(:title, :string) field(:title, :string)
field(:url, :string) field(:url, :string)
field(:publish_at, :utc_datetime) field(:publish_at, :utc_datetime)
field(:visibility, PostVisibility, default_value: :public) field(:visibility, PostVisibility, default: :public)
belongs_to(:author, Actor) belongs_to(:author, Actor)
belongs_to(:attributed_to, Actor) belongs_to(:attributed_to, Actor)
belongs_to(:picture, Media, on_replace: :update) belongs_to(:picture, Media, on_replace: :update)