summaryrefslogtreecommitdiff
path: root/lib/web/controllers/page_controller.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 02:47:33 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commit2127553ad058bfa688feb73097e604a8fb5a1899 (patch)
tree3246c31aef0f6c3a110376de21265a6f5d02c597 /lib/web/controllers/page_controller.ex
parentIRC.PubSub -> Nola.PubSub, refs T77 (diff)
Rename IRC.Account to Nola.Account, refs T77
Diffstat (limited to 'lib/web/controllers/page_controller.ex')
-rw-r--r--lib/web/controllers/page_controller.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/web/controllers/page_controller.ex b/lib/web/controllers/page_controller.ex
index 2ac4d0a..c5d0a57 100644
--- a/lib/web/controllers/page_controller.ex
+++ b/lib/web/controllers/page_controller.ex
@@ -25,8 +25,8 @@ defmodule NolaWeb.PageController do
def index(conn = %{assigns: %{account: account}}, _) do
memberships = IRC.Membership.of_account(account)
users = IRC.UserTrack.find_by_account(account)
- metas = IRC.Account.get_all_meta(account)
- predicates = IRC.Account.get_predicates(account)
+ metas = Nola.Account.get_all_meta(account)
+ predicates = Nola.Account.get_predicates(account)
conn
|> assign(:title, account.name)
|> render("user.html", users: users, memberships: memberships, metas: metas, predicates: predicates)
@@ -42,7 +42,7 @@ defmodule NolaWeb.PageController do
def authenticate(conn, _) do
with \
{:account, account_id} when is_binary(account_id) <- {:account, get_session(conn, :account)},
- {:account, account} when not is_nil(account) <- {:account, IRC.Account.get(account_id)}
+ {:account, account} when not is_nil(account) <- {:account, Nola.Account.get(account_id)}
do
assign(conn, :account, account)
else