use private as default visibility

This commit is contained in:
shibao 2022-11-26 20:36:51 -05:00
parent 5ee7071dff
commit 443ff86aee
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ defmodule MemexWeb.ContextLive.Index do
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
socket
|> assign(page_title: gettext("new context"))
|> assign(context: %Context{user_id: current_user_id})
|> assign(context: %Context{visibility: :private, user_id: current_user_id})
end
defp apply_action(socket, :index, _params) do

View File

@ -27,7 +27,7 @@ defmodule MemexWeb.NoteLive.Index do
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
socket
|> assign(page_title: gettext("new note"))
|> assign(note: %Note{user_id: current_user_id})
|> assign(note: %Note{visibility: :private, user_id: current_user_id})
end
defp apply_action(socket, :index, _params) do

View File

@ -27,7 +27,7 @@ defmodule MemexWeb.PipelineLive.Index do
defp apply_action(%{assigns: %{current_user: %{id: current_user_id}}} = socket, :new, _params) do
socket
|> assign(page_title: gettext("new pipeline"))
|> assign(pipeline: %Pipeline{user_id: current_user_id})
|> assign(pipeline: %Pipeline{visibility: :private, user_id: current_user_id})
end
defp apply_action(socket, :index, _params) do