Fix OAuthController

This commit is contained in:
Egor Kislitsyn 2019-10-04 13:30:46 +07:00
parent bdf188b2a6
commit d3ac4e8083
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805

View file

@ -460,7 +460,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
end
# Special case: Local MastodonFE
defp redirect_uri(%Plug.Conn{} = conn, "."), do: mastodon_api_url(conn, :login)
defp redirect_uri(%Plug.Conn{} = conn, "."), do: auth_url(conn, :login)
defp redirect_uri(%Plug.Conn{}, redirect_uri), do: redirect_uri