summaryrefslogtreecommitdiff
path: root/lib/web/context_plug.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/context_plug.ex')
-rw-r--r--lib/web/context_plug.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/web/context_plug.ex b/lib/web/context_plug.ex
index ebededa..7289763 100644
--- a/lib/web/context_plug.ex
+++ b/lib/web/context_plug.ex
@@ -9,7 +9,7 @@ defmodule NolaWeb.ContextPlug do
def get_account(conn) do
cond do
get_session(conn, :account) -> get_session(conn, :account)
- get_session(conn, :oidc_id) -> if account = IRC.Account.find_meta_account("identity-id", get_session(conn, :oidc_id)), do: account.id
+ get_session(conn, :oidc_id) -> if account = Nola.Account.find_meta_account("identity-id", get_session(conn, :oidc_id)), do: account.id
true -> nil
end
end
@@ -17,7 +17,7 @@ defmodule NolaWeb.ContextPlug do
def call(conn, opts) do
account = with \
{:account, account_id} when is_binary(account_id) <- {:account, get_account(conn)},
- {: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
account
else
@@ -27,7 +27,7 @@ defmodule NolaWeb.ContextPlug do
network = Map.get(conn.params, "network")
network = if network == "-", do: nil, else: network
- oidc_account = IRC.Account.find_meta_account("identity-id", get_session(conn, :oidc_id))
+ oidc_account = Nola.Account.find_meta_account("identity-id", get_session(conn, :oidc_id))
conns = IRC.Connection.get_network(network)
chan = if c = Map.get(conn.params, "chan") do