diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-07 15:52:32 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-07 15:52:32 -0600 |
commit | 55858eb9ca9d93c8ffa8fafd4c5d965b602326be (patch) | |
tree | f4e511ae8345abd2f96e3271fae3a085b4056001 /lib/aggiedit_web/live/post_live/index.ex | |
parent | ed22eb20f9f320d5ded4951c16fbb867b6883ce1 (diff) | |
download | aggiedit-55858eb9ca9d93c8ffa8fafd4c5d965b602326be.tar.gz aggiedit-55858eb9ca9d93c8ffa8fafd4c5d965b602326be.zip |
Attach upload, room, user to post
Diffstat (limited to 'lib/aggiedit_web/live/post_live/index.ex')
-rw-r--r-- | lib/aggiedit_web/live/post_live/index.ex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/aggiedit_web/live/post_live/index.ex b/lib/aggiedit_web/live/post_live/index.ex index 1952625..8ec98c7 100644 --- a/lib/aggiedit_web/live/post_live/index.ex +++ b/lib/aggiedit_web/live/post_live/index.ex @@ -26,10 +26,9 @@ defmodule AggieditWeb.PostLive.Index do end defp apply_action(socket, :new, _params) do - post = %Post{user_id: socket.assigns[:current_user].id} socket |> assign(:page_title, "New Post") - |> assign(:post, post) + |> assign(:post, %Post{}) end defp apply_action(socket, :index, _params) do |