diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 02:47:33 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 2127553ad058bfa688feb73097e604a8fb5a1899 (patch) | |
tree | 3246c31aef0f6c3a110376de21265a6f5d02c597 /lib/web/context_plug.ex | |
parent | IRC.PubSub -> Nola.PubSub, refs T77 (diff) |
Rename IRC.Account to Nola.Account, refs T77
Diffstat (limited to '')
-rw-r--r-- | lib/web/context_plug.ex | 6 |
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 |