From 23d08c6749eb142b24f22045f643d0591af579ff Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 29 Feb 2016 20:06:39 +0100 Subject: Changing the use of config constants to the Rails configuration object --- app/controllers/xrd_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/xrd_controller.rb b/app/controllers/xrd_controller.rb index 28e0a47b8..2946e9999 100644 --- a/app/controllers/xrd_controller.rb +++ b/app/controllers/xrd_controller.rb @@ -7,7 +7,7 @@ class XrdController < ApplicationController def webfinger @account = Account.find_by!(username: username_from_resource, domain: nil) - @canonical_account_uri = "acct:#{@account.username}@#{LOCAL_DOMAIN}" + @canonical_account_uri = "acct:#{@account.username}@#{Rails.configuration.x.local_domain}" @magic_key = pem_to_magic_key(@account.keypair.public_key) rescue ActiveRecord::RecordNotFound render nothing: true, status: 404 -- cgit