about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2017-06-02 22:21:36 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-06-02 22:21:36 +0200
commitd567a382e30b6d6f2b32dc249380e24b8d5f2be7 (patch)
treefdc2a837c098eebe1f8df43558658f8999286a1e /app/controllers
parent18fe77084f8695efce4f2b94917af0a34d3ef5b0 (diff)
Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388)
This fixes #2375.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/well_known/host_meta_controller.rb2
-rw-r--r--app/controllers/well_known/webfinger_controller.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/well_known/host_meta_controller.rb b/app/controllers/well_known/host_meta_controller.rb
index 82bfd3575..40f96eaa2 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 84f3015e8..1c27b2b18 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