mirror of https://github.com/mastodon/mastodon
Replace manual issuer url construction with root_url
This commit is contained in:
parent
83cb50a850
commit
56f313ebf1
|
@ -9,7 +9,7 @@ class OauthMetadataPresenter < ActiveModelSerializers::Model
|
||||||
:grant_types_supported, :token_endpoint_auth_methods_supported
|
:grant_types_supported, :token_endpoint_auth_methods_supported
|
||||||
|
|
||||||
def issuer
|
def issuer
|
||||||
"http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/"
|
root_url
|
||||||
end
|
end
|
||||||
|
|
||||||
def authorization_endpoint
|
def authorization_endpoint
|
||||||
|
|
Loading…
Reference in New Issue