lib/chiya_web/controllers/page_controller.ex aktualisiert
This commit is contained in:
parent
3863569151
commit
3075a9a636
1 changed files with 2 additions and 4 deletions
|
@ -65,10 +65,8 @@ defmodule ChiyaWeb.PageController do
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki(conn, _params) do
|
def wiki(conn, _params) do
|
||||||
settings = conn.assigns.settings
|
|
||||||
|
|
||||||
[channel, notes_updated, notes_published] =
|
[channel, notes_updated, notes_published] =
|
||||||
case settings.wiki_channel_id do
|
case conn.assigns.settings.wiki_channel_id do
|
||||||
nil ->
|
nil ->
|
||||||
[nil, nil, nil]
|
[nil, nil, nil]
|
||||||
|
|
||||||
|
@ -95,7 +93,7 @@ defmodule ChiyaWeb.PageController do
|
||||||
|
|
||||||
id ->
|
id ->
|
||||||
channel = Chiya.Channels.get_channel!(id)
|
channel = Chiya.Channels.get_channel!(id)
|
||||||
notes = Chiya.Notes.list_notes_by_channel_updated(channel, 5)
|
notes = Chiya.Notes.list_notes_by_channel_updated(channel, 999)
|
||||||
[channel, notes]
|
[channel, notes]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue