Fix default value for post visibility
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
de734e02f1
commit
0db39af37e
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue