mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
appropriate preloads
This commit is contained in:
parent
4b37a568c4
commit
dcc3b418c8
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ defmodule PhilomenaWeb.ConversationController do
|
|||
import Ecto.Query
|
||||
|
||||
plug PhilomenaWeb.Plugs.FilterBannedUsers when action in [:new, :create]
|
||||
plug :load_and_authorize_resource, model: Conversation, id_field: "slug", only: :show
|
||||
plug :load_and_authorize_resource, model: Conversation, id_field: "slug", only: :show, preload: [:to, :from]
|
||||
|
||||
def index(conn, _params) do
|
||||
user = conn.assigns.current_user
|
||||
|
|
Loading…
Reference in a new issue