summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/live/post_live/index.ex
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-08 13:01:24 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-08 13:01:24 -0600
commitcc4679c9ab0bc2607179a26556e3b381a7a2533c (patch)
tree98ce246d8aa775fa64562617b18f5268db35de5c /lib/aggiedit_web/live/post_live/index.ex
parent55858eb9ca9d93c8ffa8fafd4c5d965b602326be (diff)
downloadaggiedit-cc4679c9ab0bc2607179a26556e3b381a7a2533c.tar.gz
aggiedit-cc4679c9ab0bc2607179a26556e3b381a7a2533c.zip
Don't allow upload editing for posts
Diffstat (limited to 'lib/aggiedit_web/live/post_live/index.ex')
-rw-r--r--lib/aggiedit_web/live/post_live/index.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aggiedit_web/live/post_live/index.ex b/lib/aggiedit_web/live/post_live/index.ex
index 8ec98c7..7f3ac65 100644
--- a/lib/aggiedit_web/live/post_live/index.ex
+++ b/lib/aggiedit_web/live/post_live/index.ex
@@ -22,7 +22,7 @@ defmodule AggieditWeb.PostLive.Index do
defp apply_action(socket, :edit, %{"id" => id}) do
socket
|> assign(:page_title, "Edit Post")
- |> assign(:post, Rooms.get_post!(id))
+ |> assign(:post, Rooms.get_post!(id) |> Repo.preload(:upload))
end
defp apply_action(socket, :new, _params) do