mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
ensure options are loaded
This commit is contained in:
parent
a09d0d0a18
commit
a28d233751
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ defmodule PhilomenaWeb.LoadTopicPlug do
|
|||
|
||||
Topic
|
||||
|> where(forum_id: ^forum.id, slug: ^to_string(conn.params[param]))
|
||||
|> preload([:user, :poll, :forum, :deleted_by])
|
||||
|> preload([:user, :forum, :deleted_by, poll: :options])
|
||||
|> Repo.one()
|
||||
|> maybe_hide_topic(conn, show_hidden)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue