lib/chiya_web/controllers/page_controller.ex aktualisiert

This commit is contained in:
inhji 2023-07-29 16:51:01 +02:00
parent 3863569151
commit 3075a9a636

View file

@ -65,10 +65,8 @@ defmodule ChiyaWeb.PageController do
end
def wiki(conn, _params) do
settings = conn.assigns.settings
[channel, notes_updated, notes_published] =
case settings.wiki_channel_id do
case conn.assigns.settings.wiki_channel_id do
nil ->
[nil, nil, nil]
@ -95,7 +93,7 @@ defmodule ChiyaWeb.PageController do
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]
end