summaryrefslogtreecommitdiff
path: root/lib/lsg_web.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 05:28:02 +0200
committerhref <href@random.sh>2021-09-07 05:28:02 +0200
commitcf7b21afa87ca5202bd626d26a60adab1e9131a1 (patch)
tree245cbb332e9ab63a2b84e4168e0ce750dc1e7ae9 /lib/lsg_web.ex
parentuser_track: fix find_by_account/2 (diff)
web: openid & various fixes
Diffstat (limited to '')
-rw-r--r--lib/lsg_web.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/lsg_web.ex b/lib/lsg_web.ex
index eb0cdc5..3d9ab9a 100644
--- a/lib/lsg_web.ex
+++ b/lib/lsg_web.ex
@@ -29,12 +29,15 @@ defmodule LSGWeb do
chan
end
+ def format_chan(chan = "!"<>_), do: chan
+
def reformat_chan("♯") do
"#"
end
def reformat_chan("♯♯") do
"##"
end
+ def reformat_chan(chan = "!"<>_), do: chan
def reformat_chan(chan) do
"#"<>chan
@@ -46,6 +49,7 @@ defmodule LSGWeb do
import Plug.Conn
import LSGWeb.Router.Helpers
import LSGWeb.Gettext
+ alias LSGWeb.Router.Helpers, as: Routes
end
end
@@ -65,6 +69,8 @@ defmodule LSGWeb do
import LSGWeb.Gettext
import Phoenix.LiveView.Helpers
+
+ alias LSGWeb.Router.Helpers, as: Routes
end
end