Switch to aliasing Router.Helpers instead of importing
This commit is contained in:
parent
b221d77a6d
commit
07fed0fda2
21 changed files with 33 additions and 31 deletions
|
|
@ -427,7 +427,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
|> Map.put("state", state)
|
||||
|
||||
# Handing the request to Ueberauth
|
||||
redirect(conn, to: o_auth_path(conn, :request, provider, params))
|
||||
redirect(conn, to: Routes.o_auth_path(conn, :request, provider, params))
|
||||
end
|
||||
|
||||
def request(%Plug.Conn{} = conn, params) do
|
||||
|
|
@ -601,7 +601,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
end
|
||||
|
||||
# Special case: Local MastodonFE
|
||||
defp redirect_uri(%Plug.Conn{} = conn, "."), do: auth_url(conn, :login)
|
||||
defp redirect_uri(%Plug.Conn{} = conn, "."), do: Routes.auth_url(conn, :login)
|
||||
|
||||
defp redirect_uri(%Plug.Conn{}, redirect_uri), do: redirect_uri
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue