Commit dd536b61f1656d12131dc37c234d081d9bfaf9c4

Thomas de Grivel 2022-02-03T12:47:44

fix

diff --git a/lib/discord.ex b/lib/discord.ex
index aeb56c8..a5f5efd 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -8,7 +8,7 @@ defmodule Discord do
 
   def error(conn, params) do
     IO.inspect(conn)
-    uri = conn.request_uri
+    req_path = conn.request_path
     user = if conn.assigns[:current_user] do
       conn.assigns.current_user.slug.slug
     else
@@ -24,7 +24,7 @@ defmodule Discord do
     stack = Stack.to_string(params.stack)
     headers = headers_to_string(conn.req_headers)
     message = %{content: """
-#{uri}
+#{req_path}
 #{user.slug.slug}
 ```#{params.kind} #{reason}