From 810dd86991dfd2484b42914931242e64cbad8263 Mon Sep 17 00:00:00 2001 From: ThibG Date: Fri, 2 Jun 2017 22:21:36 +0200 Subject: [PATCH] Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388) This fixes #2375. --- app/controllers/well_known/host_meta_controller.rb | 2 ++ app/controllers/well_known/webfinger_controller.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/controllers/well_known/host_meta_controller.rb b/app/controllers/well_known/host_meta_controller.rb index 82bfd3575a..40f96eaa25 100644 --- a/app/controllers/well_known/host_meta_controller.rb +++ b/app/controllers/well_known/host_meta_controller.rb @@ -2,6 +2,8 @@ module WellKnown class HostMetaController < ApplicationController + include RoutingHelper + def show @webfinger_template = "#{webfinger_url}?resource={uri}" diff --git a/app/controllers/well_known/webfinger_controller.rb b/app/controllers/well_known/webfinger_controller.rb index 84f3015e87..1c27b2b184 100644 --- a/app/controllers/well_known/webfinger_controller.rb +++ b/app/controllers/well_known/webfinger_controller.rb @@ -2,6 +2,8 @@ module WellKnown class WebfingerController < ApplicationController + include RoutingHelper + def show @account = Account.find_local!(username_from_resource) @canonical_account_uri = @account.to_webfinger_s